ASP.NET :: Could not load System.Web.Extensions, System.Core

ASP.NET :: Could not load System.Web.Extensions, System.Core

在 XP 的環境做好了 Web Project,佈署到 Windows Server 2003 的 IIS 上,連續發生找不到 System.Web.Extensions, System.Core 等 assembly.
System.Web.Extensions 裝了 FrontPage 2002 Server Extensions 就沒問題,但 System.Core 的問題依舊,原來是在 Server 上沒有裝 .Net Framework 3.5...

裝了 .Net Framework 3.5 後,System.Core 問題就解決了,而小弟後來也把 FrontPage 2002 Server Extensions 移除掉,也不會有問題...

 

image 

Server Error in '/Portal' Application.

Configuration Error

Description: 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.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. 系統找不到指定的檔案。 (C:\Inetpub\wwwroot\Portal\web.config line 67)
Source Error:

Line 65: 		</httpHandlers>
Line 66: 		<httpModules>
Line 67: 			<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
Line 68: 		</httpModules>
Line 69: 	</system.web>

Source File: C:\Inetpub\wwwroot\Portal\web.config    Line: 67

 

image

Server Error in '/Portal' Application.

Configuration Error

Description: 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. 系統找不到指定的檔案。
Source Error:

Line 28: 		<compilation debug="true">
Line 29: 			<assemblies>
Line 30: 				<add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
Line 31: 				<add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
Line 32: 				<add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

Source File: C:\Inetpub\wwwroot\Portal\web.config    Line: 30
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].