Skip to main content

Answered Question Could not load file or assembly System.CoreRSS Feed

(0)

mikemalter
mikemalter

Member

Member

4 points

3 Posts

Could not load file or assembly System.Core

I am trying to get airborne here, and am having problems viewing and even building my project.  I have VS2008 running on XP and have the 3.5 framework loaded.  I am using IIS on my XP machine to run my web project.  I also installed Silverlight controls beta as well as the Silverlight 2.5 March preview.  I have a web project and have created an additional 2.5 project called WFPBlend test.  I loaded the Data.dll control and did get a variety of additional controls, but no data grid.  There was a grid control so I loaded that instead.

 Here are my problems:

  1. When I try to build I get an Unknown build error, 'The located assembly's manifest definition does not match the assembly reference'
  2. When I try to view the control in VS2008, I get an error, Could not load file or assembly System.core.

I am just trying to begin this process of understanding what Silverlight brings to the table, and maybe I am doing something wrong here.  Given my error messages, is there a simple fix, or am I too new to this and am making mistakes that make no sense.

 Any help would be appreciated.  Thank you.

Mike Malter
Mike Malter and Associates, Inc.

swildermuth
swildermuth

Star

Star

8320 points

1,546 Posts

Answered Question

Re: Could not load file or assembly System.Core

Are you creating a "Silverlight Application"?

 The Silverlight assemblies run on their own version of the CLR/.NET Framework.  They won't work in ASP.NET, WPF or console apps.

(If this has answered your question, "Mark as Answer")

Shawn Wildermuth
C# MVP, MCSD, Speaker and Author

Silverlight 3 Workshop
Miami, FL: Oct 12-14th
Portlant, OR: Dec 2-4th
Atlanta, GA: Dec 7-9th
http://silverlight-tour.com

mikemalter
mikemalter

Member

Member

4 points

3 Posts

Re: Re: Could not load file or assembly System.Core

Shawn,

Thanks for getting to my question.  I thought you could create a Silverlight project of controls and then run them in a web application?  I thought that was what WFP was.

Most of my work is on the web side, is there something just for web?  I have been reading through various posts, and because of so many different versions, I think I am missing something.

Mike Malter
Mike Malter and Associates, Inc.

Allen Chen – MSFT
Allen Ch...

Star

Star

13875 points

1,804 Posts

Answered Question

Re: Re: Could not load file or assembly System.Core

Hi:

  You should create SilverLight 2 Application project.

  In Blend:

File->New Project->Select SilverLight 2 Application->OK

  SilverLight project is created. You can right click the Solution, click "Edit in Vistual Studio" to open it in vistual studio. Then add a new web site in the same solution and link the SilverLight project to it. As a developer instead of a designer, I personally prefer to create SilverLight project in Vistual Studio.

You can refer to our tutorial to get started:

View the Tutorials

mikemalter:
I thought you could create a Silverlight project of controls and then run them in a web application?

  Basically SilverLight is a cross-browser, cross-platform, cross-device browser plugin which can help to build RIA(Rich Internet Application).

http://www.microsoft.com/silverlight/overview/default.aspx

Regards

Sincerely,
Allen Chen
Microsoft Online Community Support

Please remember to mark the replies as answers if they help and unmark them if they provide no help.
  • Unanswered Question
  • Answered Question
  • Announcement