Select to view content in your preferred language

Silverlight 4.0.60129 and Bing Tilelayers

1455
6
03-22-2011 11:29 AM
RobertWilson
New Contributor
We've just updated some of our developer machines to the new Silverlight runtime and developer runtime (4.0.60129.0) and VS 2010 is dying consistently on projects that use Bing layers. Has anyone else seen this? We can remove the Bing layers and use ArcGIS server layers with no issues. 

It's not causing the runtime to crash when running the projects in the browser, only in Visual Studio after either debugging or switching to design and then back to XAML.
0 Kudos
6 Replies
dotMorten_esri
Esri Notable Contributor
We are aware of this and will have a fix in v2.2.
The solution for now is either not using the design time view, or don't set the Token property until runtime.
0 Kudos
RobertWilson
New Contributor
Thanks for the quick response.
0 Kudos
MichaelHaley
Emerging Contributor
We are aware of this and will have a fix in v2.2.
The solution for now is either not using the design time view, or don't set the Token property until runtime.


I loaded 2.2 and it still crashes Visual Studio
0 Kudos
JenniferNery
Esri Regular Contributor
The fix was put in v2.2 post-beta. Please set Token in code-behind instead.
0 Kudos
MichaelHaley
Emerging Contributor
Couold you send an example of how to do that?
0 Kudos
EvanBossett
Emerging Contributor
I tried this solution (storing the Bing key in my App.xaml file) and my Silverlight application references the value as Token="{StaticResource BingKeyString}"

It works with Bing Map background.  However, Visual Studio still gave an error and closes while I amin debug mode. 

Please let me know what is going on with this and how i can solve the problem.

Thank you.
0 Kudos