0
嘿,想知道是否有人可以阐明我的情况。使用定位服务时XDE崩溃
我正在编写一个应用程序,它利用位置服务访问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.
我确实已经把它放到了应用清单中,但是当我运行应用程序时,它只是坐在那里,加载条只是往前走。我试图插入一个断点,并找出它失败的位置,我已经放入了一些,但它似乎甚至没有使它成为主页的构造函数......很奇怪。我需要调查更多。 – 2013-03-23 10:58:10