WP7 Bing Maps 'Invalid Credentials' Error

后端 未结 2 791
长发绾君心
长发绾君心 2021-01-12 16:14

I\'m trying to use a bing maps control on a windows phone 7 silverlight application and it shows this error overlaid on the map.

Invalid Credentials,

2条回答
  •  不思量自难忘°
    2021-01-12 16:50

    After much travail, I finally discovered that this occurs (at least on desktop SL; not sure about WP7) when the Thread.CurrentUICulture is set to the invariant culture. Be sure it is set to a specific culture (consider also setting Thread.CurrentCulture) in the App.Startup event handler, e.g.

    System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("en-US");
    

    You do still need AppID set, of course.

提交回复
热议问题