【问题标题】:Adrotator issues with AdDuplexAdDuplex 的 Adrotator 问题
【发布时间】:2014-04-07 15:37:41
【问题描述】:

我正在尝试在我的 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 的代码,我不断收到异常。 卸载 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

正确设置了数字和 ID,但显然我不能在这里分享它们。 无论我做什么,问题仍然存在。

我尝试下载 adDuplex,但 Nuget 中唯一可用的版本是 8.0.5,理论上它应该可以工作(因为错误是 AdDuplex 的早期版本)但仍然没有

【问题讨论】:

    标签: c# xaml windows-store-apps adrotator


    【解决方案1】:

    按照此网址中的说明进行操作:http://darkgenesis.zenithmoon.com/adrotator-for-windows-8/

    我相信你必须改变

    defaultApSettings.xml

    删除 AdDuplex 并设置您要使用的广告服务。

    另一种解决方案是仅使用 Nuget 下载 AdDuplex 包,但如果您已经决定不使用它,我相信这不是最佳选择。

    【讨论】:

      【解决方案2】:

      原来所说的 AdDuplex 版本存在 AdRotator 问题,并且 Adrotator 已更新以适应新的变化

      【讨论】:

        猜你喜欢
        • 2014-07-03
        • 2012-08-31
        • 2015-05-23
        • 1970-01-01
        • 1970-01-01
        • 2013-04-09
        • 2015-02-28
        • 2011-03-15
        • 2014-05-17
        相关资源
        最近更新 更多