2013-03-23 89 views
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. 

回答

0

那麼你是否檢查清單,因爲錯誤消息說?如果沒有這種功能,您的應用在嘗試撥打電話時會崩潰。

+0

我確實已經把它放到了應用清單中,但是當我運行應用程序時,它只是坐在那裏,加載條只是往前走。我試圖插入一個斷點,並找出它失敗的位置,我已經放入了一些,但它似乎甚至沒有使它成爲主頁的構造函數......很奇怪。我需要調查更多。 – 2013-03-23 10:58:10