Wednesday, October 1, 2014

Unauthorized Access Exception - MvxLocationWatcher in Windows Phone 8

I have been working through Stuart Lodge's MvvmCross tutorial.  Session 12 is working with location watchers.  I was able to compile the solution but at run time I received the Unauthorized access error.

Solution:
1.) Solution Explorer
2.) Expand properties of the Windows Phone project
3.) Open WMAppManifest.xml
4.) Capabilities tab
5.) Select ID_CAP_LOCATION check box

The application must grant this permission in order to use the onboard location features.


No comments:

Post a Comment