locked
Problem with bing maps Silverlight control RRS feed

  • Question

  • Hi all,

     I'm porting an asp.net application to silverlight, which I'm quite enthousiastic of.

    In the asp.net site, I was using google maps, now for the silverlight I wanted to try

    out the bing map control.

    I've requested a key at the site, and I've set the website to http://localhost

    because it's currently on my development machine.

    When I try to run it, no map occurs and I get the message:

    Invalid credentials. Sign up for a developer account at ....

    What could be the reason for this? Can it be that it's because of my proxy doesn't allow 

    a connection to the webservice?

    Hope you can help me out!

    Tnx in advance

    Best regards,

     

     Koen

     

    Tuesday, December 22, 2009 5:03 AM

Answers

  • denappel

    You have to go to https://www.bingmapsportal.com/ and then generate Application Keys for the map, you can generate up to 5 keys per account, then place this into the ApplicationCredentials node of the Map Control. Most likely you need to provide a valid domain name even if the map wont be used on that domain.

    I just wrote a very detailed white paper on the Bing Maps SDK (published Christmas eve) that I'm sure you will find very helpful (it includes the source code for download) which goes over this kind of stuff, you can find the article at http://www.mknopf.com/articles/creating-a-weather-map-using-the-bing-silverlight-map-skd-and-weatherbug.html

     

    Hope this helps, please mark this as the answer if it actually answered your question.

    Monday, January 4, 2010 1:59 PM

All replies

  • denappel

    You have to go to https://www.bingmapsportal.com/ and then generate Application Keys for the map, you can generate up to 5 keys per account, then place this into the ApplicationCredentials node of the Map Control. Most likely you need to provide a valid domain name even if the map wont be used on that domain.

    I just wrote a very detailed white paper on the Bing Maps SDK (published Christmas eve) that I'm sure you will find very helpful (it includes the source code for download) which goes over this kind of stuff, you can find the article at http://www.mknopf.com/articles/creating-a-weather-map-using-the-bing-silverlight-map-skd-and-weatherbug.html

     

    Hope this helps, please mark this as the answer if it actually answered your question.

    Monday, January 4, 2010 1:59 PM
  •  Thanks, this was the solution, with the new developer key linked to an existing url it works!

     Great stuff.

    Regards, Koen

     

    Wednesday, January 6, 2010 12:05 PM
  • Cool. I am wondering what the whole deal is with the requirement to register an account and provide a valid domain url in order to active the map on a non-localhost environment. What if you are just getting started in development and haven't purchased your domain, or you just want to write up a white paper like I did.

    This seems to me like an unnecessary step which could get in the way of wide spread adoption of the Bing Maps SDK, I'm sure it has to have more to do with marketing then software development but at least we get a pretty awesome tool for free.

    Wednesday, January 6, 2010 10:22 PM