gpt4 book ai didi

c# - AdDuplex 的 Adrotator 问题

转载 作者:太空宇宙 更新时间:2023-11-03 15:59:10 25 4
gpt4 key购买 nike

我正在尝试在我的 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 的早期版本)但仍然没有

最佳答案

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

我相信你必须改变

defaultApSettings.xml

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

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

关于c# - AdDuplex 的 Adrotator 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22200128/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com