未解决的P / Invoke方法'GetSystemPowerStatus!kernel32.dll'导致商店中的应用程序崩溃 [英] Unresolved P/Invoke method 'GetSystemPowerStatus!kernel32.dll' cause a crash with the app from the store

查看:122
本文介绍了未解决的P / Invoke方法'GetSystemPowerStatus!kernel32.dll'导致商店中的应用程序崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


应用程序级别的未处理异常:此方法中未解析的P / Invoke方法'GetSystemPowerStatus!kernel32.dll'。请在构建警告中查找此方法以获取更多详细信息。



但是,没有关于该方法的警告  GetSystemPowerStatus


此问题仅在我将应用程序发布到Windows应用商店(并通过Windows应用商店下载)后发生。执行本地DEBUG和RELEASE构建按预期工作。边加载
应用程序也可用作预期。

解决方案

< blockquote>

非常喜欢 


https://social.msdn.microsoft.com/Forums/windowsapps/en-US/15f89674-8c49-43d5-920b-d0997bb607f5 / rs31709systemnethttphttpclient-possible-caused-quotunresolved-pinvokequot-crash?forum = wpdevelop



我无法弄清楚出了什么问题。


Unhandled exception at app level: Unresolved P/Invoke method 'GetSystemPowerStatus!kernel32.dll' from this method. Please look for this method in build warnings for more details.

However, there is no warning about the method GetSystemPowerStatus

This issue only happens after I publish my app to the Windows Store (and download it through the Windows Store). Performing local DEBUG and RELEASE builds work as expected. Side-loading the app also works as expected.

解决方案

It is quite like 

https://social.msdn.microsoft.com/Forums/windowsapps/en-US/15f89674-8c49-43d5-920b-d0997bb607f5/rs31709systemnethttphttpclient-possibly-causing-quotunresolved-pinvokequot-crash?forum=wpdevelop

I cannot figure out what is wrong.


这篇关于未解决的P / Invoke方法'GetSystemPowerStatus!kernel32.dll'导致商店中的应用程序崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆