XamlParseException when using Map Control in Windows Phone 8

When using the Map Control, you might receive the following error

“A first chance exception of type ‘System.Windows.Markup.XamlParseException’ occurred in System.Windows.ni.dll”

XamlParseException when using Map Control in Windows Phone 8

When you observe the exception in detail, you will notice more information like

{System.UnauthorizedAccessException} and the message states that “Cannot create instance of type ‘Microsoft.Phone.Maps.Controls.Map’ [Line: 52 Position: 138]”.

XamlParseException when using Map Control in Windows Phone 8

What is the reason for the XamlParseException when using MapControl in Windows Phone 8?

Well, the answer is simple. This is an unauthorized access exception. Make sure that the capabilities required for the Maps like “MAPS” and “LOCATION” to avoid this error.

XamlParseException when using Map Control in Windows Phone 8

Leave A Reply

Your email address will not be published. Required fields are marked *

You May Also Like

In this post, you’ll learn about the Win32 Error “0x000019E5 – ERROR_COULD_NOT_RESIZE_LOG” that you get when debugging system erors in...
In this post, you’ll learn about the error “CO_E_DBERROR 0x8004E02B” that is returned when working with COM based APIs or...
In this post, you’ll learn about the Win32 Error “0x000019D0 – ERROR_LOG_BLOCK_VERSION” that you get when debugging system erors in...