且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

应用购买问题中的Windows应用商店

更新时间:2022-12-31 10:00:56

Hello ,


对于延迟回复感到抱歉。


当我们就此问题咨询相关团队时,我们得到了这个:


在这种情况下,它是一个"E_INVALIDARG"。 失败来自令牌经纪人试图获取用户的登录数据。  


这个错误的唯一可能原因是HWND无效。 


希望这会有所帮助。


最诚挚的问候。


Annievia


跨度>


When performing an in-app purchase from a WPF Desktop Application using StoreContext.RequestPurchaseAsync() from the namespace Windows.services.Store, I get a StorePurchaseResult with an ExtendedError message "Value does not fall within the expected range."

I have already submitted the issue on this forum and on ***, but I am still waiting an answer.

The application is published and available for download from the Windows Store.

It was converted using the DesktopAppConverter tool. The manifest.appx was set according to the description in the Store (Identity Name, Publisher...). I followed the instructions provided below for using in-app purchase in C# from the UI thread of a Windows desktop application that uses the Desktop Bridge.

Hello,

Sorry for the delay response.

When we consulted related team about this issue, we got this:

In this case it is an "E_INVALIDARG".  The failure is coming from the token broker trying to get the user’s sign in data.  

And the only likely cause of this error is the HWND is invalid. 

Hope this helps.

Best Regards.

Annievia


相关阅读

技术问答最新文章