您是不是遇到過在本地運行測試正常,但是發布網站是傳送到伺服器就會報如下的錯誤呢:
錯誤提示:
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=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. 系統找不到指定的檔案。
Source Error:
Line 35: <compilation debug="true">
Line 36: <assemblies>
Line 37: <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></assemblies></compilation>
Line 38: <!--
Line 39: 通過 <authentication> 節可以配置 ASP.NET 用來
Source File: E:\wwwroot\dc580\web.config Line: 37
Assembly Load Trace: The following information can be helpful to determine why the assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' 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].
可能出現的問題:檢查下您的項目中是否用到了Ajax控制項或技術呢?如果是的話檢查下你的項目bin檔案夾下是否有
這3個檔案,倘若沒有的話可以到本地的 C:\Program Files\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions\v1.0.61025
檔案夾下將這3個DLL檔案拷貝到你所需上傳的伺服器相對應網站BIN檔案夾下,再次運行估計就沒有錯誤了