Cloud Training (Online)

Visual Studio 2015 – The name "MapControl" does not exist in the namespace "using:Windows.UI.Xaml.Controls.Maps"

There are times when you get the below warning message in the Visual Studio Xaml Designer when using the MapsControl .

The name “MapControl” does not exist in the namespace “using:Windows.UI.Xaml.Controls.Maps”

I got this error when trying to open the Universal Windows Apps MapsControl sample project in Visual Studio 2015 . When I build the project and run it on Windows Mobile 10 emulator , it would work fine . But the designer the the error “Invalid Markup”.


The fix to the problem was pretty simple. Just try to change the build configuration from x64 to x86 and it fixed the issue on the designer .


Senthil Kumar B
Senthil Kumar is a former Microsoft MVP (Most Valuable Professional). He is a Co-Author of the book "Windows 10 Development Recipes using JavaScript and CSS" for Apress Publication. He is a technical presenter, blogger, mentor and a Geek.  Senthil is a regular speaker is various local user groups. He has presented at conferences like Great Indian Developer Summit (GIDS) & Microsoft DevCamps. You can reach out to him via his Twitter handle @isenthil.