嘿家伙想知道是否有人可以阐明我的情况。
我正在编写一个应用程序,该应用程序利用位置服务访问 Yelp 并查找附近的企业。当我尝试在 XDE.exe 模拟器上进行调试时遇到了问题。
不知道如何修复它,我试图使用我的 GoogleFu 但无济于事。
An exception of type 'System.UnauthorizedAccessException' occurred in mscorlib.ni.dll but was not handled in user code
WinRT information: Your App does not have permission to access location data. Make sure you have defined ID_CAP_LOCATION in the application manifest and that on your phone, you have turned on location by checking Settings > Location.
If there is a handler for this exception, the program may be safely continued.