C# AdDuplex的Adrotator问题
我试图在我的Windows应用商店应用程序中使用AdRotator,我只是使用Nuget软件包管理器安装了它。我试图在XAML/C#Windows应用商店应用程序中运行我的应用程序,但没有添加任何控件或代码,它崩溃了,抛出了一个关于AdDuplex的异常 更准确地说,我得到了以下例外C# AdDuplex的Adrotator问题,c#,xaml,windows-store-apps,adrotator,C#,Xaml,Windows Store Apps,Adrotator,我试图在我的Windows应用商店应用程序中使用AdRotator,我只是使用Nuget软件包管理器安装了它。我试图在XAML/C#Windows应用商店应用程序中运行我的应用程序,但没有添加任何控件或代码,它崩溃了,抛出了一个关于AdDuplex的异常 更准确地说,我得到了以下例外 An exception of type 'System.IO.FileNotFoundException' occurred in AdRotatorWin8.DLL but was not handled in
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的代码的情况下,我总是会遇到异常。
卸载adrotator后,一切正常
在检查软件包输出窗口后,AdDuplex与AdRotator一起安装。我如何让我的应用程序工作呢?
我的默认广告设置文件仅包含以下内容
<?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
请按照此url中的说明操作:
我相信你必须改变
defaultApSettings.xml
删除AdDuplex并设置要使用的广告服务
另一种解决方案是使用Nuget下载AdDuplex包,但我认为如果您已经决定不使用它,那么这不是最佳选择 结果表明,AdDuplex的版本与AdRotator存在问题,AdRotator已经更新以适应新的变化