C# 市场测试失败PhoneApplicationService
我正在尝试将我的应用程序传递到Microsoft market place,但是我的后台代理中有3个错误,我不理解 他说:C# 市场测试失败PhoneApplicationService,c#,windows-phone-7,windows-phone-7.1,C#,Windows Phone 7,Windows Phone 7.1,我正在尝试将我的应用程序传递到Microsoft market place,但是我的后台代理中有3个错误,我不理解 他说: Unsupported API cannot be used by a background agent. Assembly contoso.dll was trying to use Micosoft.Phone.Shell.PhoneApplicationService::get_Current Unsupported API cannot be used by
Unsupported API cannot be used by a background agent. Assembly contoso.dll was trying to
use Micosoft.Phone.Shell.PhoneApplicationService::get_Current
Unsupported API cannot be used by a background agent. Assembly contoso.dll was trying to
use Micosoft.Phone.Shell.PhoneApplicationService::get_State
Unsupported API cannot be used by a background agent. Assembly contoso.dll was trying to
use Micosoft.Phone.Shell.PhoneApplicationService
所以我寻找了不受支持的API(http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh202962(v=vs.105).aspx
我使用的是ShellToast
类,但它应该是受支持的
我不明白为什么或何时使用此PhoneApplicationService,它没有在我的后台代理中引用,并且我在Microsoft.Phone.Shell
命名空间中使用的唯一类是ShellToast
我也在使用IsoStorage,但它是允许从后台代理使用的
没有密码的猜测?你知道什么时候会发生这种错误吗
谢谢,好吧,我很愚蠢,我找到了解决办法
实际上,不是我的ShellToast
类,而是我的TempDataStorage,它使用PhoneApplicationService.Current.State
作为临时存储
对不起