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.
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.
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.
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.
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!