マーケットプレイステストキットを実行しようとしましたが、Microsoft.Advertising.Mobile.dllが行おうとしていた一連の呼び出しで、機能の検証に失敗しました。これは理解できますが、BackgroundAgentからAdControlを更新しようとしているわけではありません。私が考えることができる最も近いものはこれにあります:
public ScheduledAgent()
{
if (!_classInitialized)
{
_classInitialized = true;
// Subscribe to the managed exception handler
Deployment.Current.Dispatcher.BeginInvoke(delegate
{
Application.Current.UnhandledException += ScheduledAgent_UnhandledException;
});
}
}
Application.Currentは、広告コントロールを使用しようとしているものを呼び出していますか?もしそうなら、どうすればそれを防ぐことができますか?
編集:エラーメッセージの1つの出力は次のとおりです。
Unsupported API cannot be used by a background agent. Assembly Microsoft.Advertising.Mobile.dll was trying to use Microsoft.Phone.Tasks.PhoneCallTask::.ctor.