Tag: Location Services

UnauthorizedAccessException or unhandled Exception when accessing Geolocator in Windows Phone

When using the Geolocator GetGeopositionAsync () method, it is necessary to handle the necessary exceptions that may arise based on various scenarios. One such scenario is the Location is disabled by the use in the Phone Settings. In this case, when the Geolocator’s GetGeopositionAsync() method is called, you will receive the UnauthorizedAccessException or unhandled Exception as shown below. “An exception of type ‘System.Exception’ occurred in…