+ Reply to Thread
Results 1 to 4 of 4

Thread: System.runtime.serialization and resolving reference assemblies with infowindow

  1. #1
    Jimmy Dobbins
    Join Date
    Aug 2010
    Posts
    32
    Points
    4
    Answers Provided
    1


    0

    Default System.runtime.serialization and resolving reference assemblies with infowindow

    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/sil...foWindowSimple

    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.

  2. #2
    Jennifer Nery

    Join Date
    May 2010
    Posts
    2,449
    Points
    289
    Answers Provided
    51


    0
    This post is marked as the answer

    Default Re: System.runtime.serialization and resolving reference assemblies with infowindow

    ArcGIS API for Silverlight v2.4 has the following minimum requirements: http://help.arcgis.com/en/webapi/sil...0000005000000/. What you can do is download the SDK sample: http://help.arcgis.com/en/webapi/sil...000000v000000/.

    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 Nery
    Software Developer
    ArcGIS API for SL/WPF/WP7

  3. #3
    Jimmy Dobbins
    Join Date
    Aug 2010
    Posts
    32
    Points
    4
    Answers Provided
    1


    0

    Default Re: System.runtime.serialization and resolving reference assemblies with infowindow

    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!

  4. #4
    Jimmy Dobbins
    Join Date
    Aug 2010
    Posts
    32
    Points
    4
    Answers Provided
    1


    0

    Default Re: System.runtime.serialization and resolving reference assemblies with infowindow

    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

+ Reply to Thread

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts