我试图在我的Windows应用程序中使用AdRotator,我只是使用Nuget软件包管理器安装它。我试图在XAML/C# Windows应用程序中不添加任何控件或代码就运行我的应用程序,它崩溃了,抛出了一个关于AdDuplex的异常。
更准确地说,我得到了以下异常
An exception of type 'System.IO.FileNotFoundException' occurred in AdRotatorWin8.DLL but was not handled in user code
Additional information: Could not load file or assembly 'AdDuplex.Windows, Version=8.0.2.0, Culture=neutral, PublicKeyToken=447cab5ae9276daf' or one of its dependencies. The system cannot find the file specified.我不打算在我的应用程序中使用AdDuplex,但是没有添加任何关于AdDuplex的代码,我就会得到异常。卸载旋转器后,一切工作正常。
在检查包输出窗口后,AdDuplex与AdRotator一起安装。但是,我如何使我的应用程序工作呢?我的默认Ad设置文件仅由以下内容组成
<?xml version="1.0" encoding="utf-8"?>
<AdSettings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<CultureDescriptors>
<AdCultureDescriptor CultureName="default">
<Probabilities Probability="50" AdType="PubCenter" AppID="test_client" SecondaryID="Image_728x90" />
</AdCultureDescriptor>
</CultureDescriptors>
</AdSettings正确设置了数字和ID,但显然我不能在这里共享它们。不管我做什么,这些问题都会持续存在。
我试过下载adDuplex,但Nuget中唯一可用的版本是8.0.5,理论上它应该可以工作(因为错误是早期版本的AdDuplex),但仍然不能。
发布于 2014-03-20 18:47:40
原来AdDuplex的版本与AdRotator有问题,Adrotator已经被更新以适应新的变化
发布于 2014-03-05 23:58:40
按照这个url:http://darkgenesis.zenithmoon.com/adrotator-for-windows-8/中的说明
我相信你必须改变
defaultApSettings.xml
删除AdDuplex并设置要使用的广告服务。
另一种解决方案是使用Nuget下载AdDuplex包,但如果您已经决定不使用它,那么这不是最好的选择。
https://stackoverflow.com/questions/22200128
复制相似问题