我對存儲在Windows 8.1的應用程序,但是當我嘗試使用下一段代碼新功能,我想添加到我的應用程序Windows應用商店CurrentApp.LoadListingInformationAsync() - 錯誤0x801900cc
var listingInfo = await CurrentApp.LoadListingInformationAsync();
我收到一個錯誤,我不完全知道它是什麼意思。我確實發現了這個錯誤,然後我將它顯示在一個MessageDialog上,然後我打印了一個屏幕。這是錯誤:
We could not receive your donation due to an unexpected error:
System.Exception: Exception from HRESULT: 0x801900CC
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task
task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at ArchMedia_Player.Services.Donations.<ListingInformationAsync> d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task
task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at ArchMedia_Player.Services.Donations.<Donate>d__a.MoveNext()
有人知道這意味着什麼,我該如何解決它? 我還提到,這個工程完全確定:(使用CurrentApp 模擬器)
var listingInfo = await CurrentAppSimulator.LoadListingInformationAsync();
是的,所以在我添加了可以在應用程序內購買的產品之後,該應用程序不再崩潰並且代碼正常工作。顯然這是問題所在。儘管如此,它仍然可以工作,並且在我看到一切正常後我將會加入這些產品。謝謝漢斯! :) – TheQuestioner