Home » .Net FrameworkRSS

Could not load file or assembly 'System.Core

I have a new ASP.Net web site.  I gewt the following error whehn I browse; it both builds and publishes without errors.

Configuration ErrorDescription: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Could not load file or assembly 'System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified.

Source Error:

Line 36: <assemblies>



Line 37: 



Line 38:  <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>



Line 39:  <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>



Line 40:  <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>


Source File: S:\Flextime\fl\web.config    Line: 38

Assembly Load Trace:
The following information can be helpful to determine why the assembly 'System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' could not be loaded.

WRN: Assembly binding logging is turned OFF.



To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.



Note: There is some performance penalty associated with assembly bind failure logging.



To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].





Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433

The problem with this error is that this is what is inside of my assemblies tag:

<assemblies>

<addassembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>

<addassembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

<addassembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>

<addassembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>

</assemblies>

 

 

2 Answers Found

 

Answer 1

Hi peonysmiles,

Thank you for your post in MSDN forum!

Some clarification with you

Have you installed .NET Framework 3.5 on your goal machine?

 

Based on your error  information, I found some errors, which might cause this issue. I would provide you some suggestions.

1, Parser Error Message: Could not load  file or assembly  'System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system  cannot find  the file  specified.

I would recommend you invest whether .NET Framework 3.5 is installed on your goal machine or not. You could download a verification tool to verify .NET Framework states on your goal machine. You could click following link.

http://blogs.msdn.com/b/astebner/archive/2008/10/13/8999004.aspx

2, WRN: Assembly binding  logging is turned  OFF.

To enable  assembly bind  failure logging, set  the registry  value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.

Note: There is some performance penalty associated with assembly bind failure  logging.

To turn this feature off, remove the registry value

 

If it does not work, you could modify  the registry on the basis of the error information.

You could follow the following steps one by one.

1, open ‘Run’

2, type ‘regedit’

3, backup your registry

4, search the key in Registry

5, modify its value on basis of error information

 

The following two threads are similar like yours. You could refer.

http://forums.asp.net/t/1520100.aspx

http://forums.asp.net/t/1205694.aspx

Here’s .NET Framework Setup Forum. This issue is Off-Topic here. If you have any doubts and concerns, you could certainly open a new thread in ASP.NET Forum, which have more experts could help you more useful and exactly information  and suggestions.

The ASP.NET Forum is: http://forums.asp.net/

Thank you for your understanding!

 

Best Regards

Larcolais Gong

Please remember to mark the replies as answers if they help and unmark them if they provide no help.

 

Answer 2

Hi peonysmiles,

I'm writing to follow-up this post. Does it work above?

I'm marking this post as Answered, if you any some findings and concerns, please feel free to unmark this post.

Best Regards

Larcolais Gong

Please remember to mark the replies as answers if they help and unmark them if they provide no help.

 
 
 

<< Previous      Next >>


Microsoft   |   Windows   |   Visual Studio   |   Follow us on Twitter