C# 使用位置服务时XDE崩溃

C# 使用位置服务时XDE崩溃,c#,geolocation,windows-phone-8,C#,Geolocation,Windows Phone 8,嘿,伙计们,想知道是否有人能透露我的情况 我正在编写一个应用程序,它利用定位服务访问Yelp并查找附近的企业。当我尝试在XDE.exe模拟器上调试时,遇到了一个问题 不知道如何修复它,我也尝试过使用我的谷歌浏览器,但没有用 An exception of type 'System.UnauthorizedAccessException' occurred in mscorlib.ni.dll but was not handled in user code WinRT information:

嘿,伙计们,想知道是否有人能透露我的情况

我正在编写一个应用程序,它利用定位服务访问Yelp并查找附近的企业。当我尝试在XDE.exe模拟器上调试时,遇到了一个问题

不知道如何修复它,我也尝试过使用我的谷歌浏览器,但没有用

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.

那么,您是否按照错误消息所述检查了清单?如果没有该功能,您的应用程序在尝试进行定位呼叫时将崩溃。

我现在确实已将其放入应用程序清单中,但当我运行应用程序时,它只是坐在那里,加载栏不停地移动。我试图插入一个断点,找出它失败的地方,我也加入了一些断点,但似乎连主页构造函数都做不到。。。很奇怪。我需要更多的调查。