Select to view content in your preferred language

System.runtime.serialization and resolving reference assemblies with infowindow

2153
3
Jump to solution
04-20-2012 05:57 PM
JimmyDobbins
Occasional Contributor
I am trying to get the infowindow example from the interactive SDK working. I am using Visual Studio 2010 SP1, ESRI Silverlight 2.4, .NET framework 3.5, and Silverlight version 4.0.

Here is the sample I am implementing: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#InfoWindowSimple

My code is copied from the example (with the necessary "MainPage" modifications to class name, etc. I cannot get it to run and I get some strange behavior....let me try to explain:

The first time I run it I get an error message stating that it cannot load system.runtime.serialization. So, I add a reference to that and rebuild the solution (as per this discussion). Once I do that, I get another error: "cannot resolve the reference assemblies. Please check the reference assemblies. Object reference not set to an instance of an object." I remove and re-add the serialization instance, but I am in a vicious cycle between the two error messages.

At one point I figured maybe it was because I had several Silverlight SDK versions installed (3,4,5) so I removed all but version 4. I still get the error.

Does anyone have any ideas what is causing this? I am at a complete loss after hours of trying different things and googling the problem to death. Thanks in advance for any help you can provide.
0 Kudos
1 Solution

Accepted Solutions
JenniferNery
Esri Regular Contributor
ArcGIS API for Silverlight v2.4 has the following minimum requirements: http://help.arcgis.com/en/webapi/silverlight/help/index.html#/Installation/016600000005000000/. What you can do is download the SDK sample: http://help.arcgis.com/en/webapi/silverlight/help/index.html#/Interactive_SDK_samples/01660000000v00....

System.Runtime.Serialization often comes up when you are defining Symbols, Extent, Geometry in XAML. To fix this, you just need to add "System.Runtime.Serialization" assembly. Also check your project reference, make sure it points to the proper assemblies (see Path). If this path seems incorrect, points to "/users/..", you can remove references to API assemblies from your SL project, delete bin and obj folder from your SL app, and add references to API assemblies again, clean solution and rebuild.

View solution in original post

0 Kudos
3 Replies
JenniferNery
Esri Regular Contributor
ArcGIS API for Silverlight v2.4 has the following minimum requirements: http://help.arcgis.com/en/webapi/silverlight/help/index.html#/Installation/016600000005000000/. What you can do is download the SDK sample: http://help.arcgis.com/en/webapi/silverlight/help/index.html#/Interactive_SDK_samples/01660000000v00....

System.Runtime.Serialization often comes up when you are defining Symbols, Extent, Geometry in XAML. To fix this, you just need to add "System.Runtime.Serialization" assembly. Also check your project reference, make sure it points to the proper assemblies (see Path). If this path seems incorrect, points to "/users/..", you can remove references to API assemblies from your SL project, delete bin and obj folder from your SL app, and add references to API assemblies again, clean solution and rebuild.
0 Kudos
JimmyDobbins
Occasional Contributor
Jennifer, thanks for the reply. I am away from the computer for a few days, but will try it as soon as I return. Thanks again!
0 Kudos
JimmyDobbins
Occasional Contributor
Jennifer, thanks for the posted solution. That worked great! I didn't have to go through and delete the references, but starting over and stepping through the minimum requirements did the trick. Thanks again!

-Jimmy
0 Kudos