Reimers.dk

.NET, AJAX and Google APIs brought together
Welcome to Reimers.dk Sign in | Join | Help
in Search

Error Message

Last post 10-21-2009, 19:38 by jjrdk. 4 replies.
Sort Posts: Previous Next
  •  09-15-2009, 10:38 2755

    Error Message

    What dependancies does the silver light control have? I'm experiementing with it and can't get it build. I just get this error message

     Error 1 Reference required to assembly 'System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' containing the base class 'System.Windows.Controls.UserControl'. Add one to your project. C:\*path*\SilverlightApplication2.Web\Default.aspx.vb 6 27 SilverlightApplication2.Web

    I've tried adding the System assembly but that doesn't fix the problem? Any ideas?

      Also how do you change the map provider to OSM instead of microsoft?

     Thanks 

  •  09-15-2009, 15:45 2756 in reply to 2755

    Re: Error Message

    I can't quite see how you are trying to compile it. It looks like your web application has a direct reference to the Silverlight project. You must reference it as a Silverlight project (in properties for the web site add a Silverlight project reference).

    Judging by the version of the System.Window assembly it also looks like you are using SL 2. The assembly is for Silverlight 3.

    To use an OSM map simply set the Mode property of your VE Map to one of the maps in the Reimers.Silverlight.Bing.Maps namespace.

  •  09-17-2009, 12:47 2758 in reply to 2756

    Re: Error Message

    Ok.

    I start a new asp.net web project.

    Add a refernce to the reimers.silverlight.dll

    Drag a virtual earth map onto the page and it all works.

    If I now in code start to do anything it gives me the error message.

    If I browse to and include the system.dll libary I get a load more errors like:

    Error 2 'EditorBrowsableAttribute' is ambiguous in the namespace 'System.ComponentModel'. InternalMyTemplate.vb 

    I'm also adding a silverlight refernce to a new project. Should I add the refernce to a differnent project?

    I've got the silverlight 3.0 SDK installed so I assume that I'm using the newest edition of silverlight.

     Any Ideas? 

     

  •  10-19-2009, 14:56 2814 in reply to 2756

    Re: Error Message

    sorry! mistaken

  •  10-21-2009, 19:38 2820 in reply to 2758

    Re: Error Message

    Do you have both SL2 and 3 installed?

    The Microsoft map control is based on Silverlight 2, but the OverlayManager is based on Silverlight 3. I only have 3 installed and have no problems compiling. 

View as RSS news feed in XML