none
[Windows 8.1] [Bing Maps SDK] The name "Map" does not exist in the namespace "using:Bing.Maps"

    Question

  • I am attempting to build an Windows 8.1 app using the Bing Maps control, howeverduring design VS2013 gives me the following error:

    Error 1 The name "Map" does not exist in the namespace "using:Bing.Maps". C:\Users\Patrick\Source\Repos\NSAppWin8\SpoorApp\SpoorApp\MainPage.xaml 24 13 SpoorApp (Windows 8.1)


    I have added the reference to the new SDK, and defined my xml namespace as such:

    xmlns:bm="using:Bing.Maps"

    the XAML for my control is:

    <bm:Map Credentials="{StaticResource BingKey}" Name="map1"/>

    I guess this is just one of those bugs from a beta release, but if anyone has a solution or has this problem too, feel free to respond. When I compile the app, it does work by the way.


    Patrick Decoster
    Dev7 Solutions

    Monday, July 01, 2013 6:34 AM

All replies

  • delete all the files in your /bin and /obj directories...worked for me.
    Monday, November 25, 2013 5:04 AM
  • i have came across same problem.. have u found the answer ??
    Monday, March 10, 2014 8:10 AM
  • id you change your build configuration from any cpu to a specific architecture? (arm / 32bit / 64bit)

    Microsoft Certified Solutions Developer - Windows Store Apps Using C#

    Monday, March 10, 2014 10:41 AM
  • thanks for rep..

    yes i did change it to x84 but still xaml has this weird error .. it says cannot create instance of map and xaml does not show map.. do u have idea?

    Monday, March 10, 2014 7:18 PM
  • I had the same issue in Blend and solved it following these steps:

    • Close Blend
    • Open the Configuration Manager in Visual Studio.
    • Select "Any CPU" as active solution platform
    • Uncheck "Build" and "Deploy"
    • Select "x86" as active solution platform
    • Open XAML file in Blend

    Monday, September 15, 2014 6:26 AM