2010-05-17 73 views
1

我正在開發一個應用程序。當我在我的系統中運行應用程序時,它給出了這個錯誤,請你能幫助我。asp.net中的配置錯誤

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. The system cannot find the file specified.

源錯誤:

Line 33:  <compilation debug="true"> 
Line 34:   <assemblies> 
Line 35:    <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> 
Line 36:    <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/> 
Line 37:    <add assembly ... 

回答

1

錯誤是由於導致這樣的事實,ASP.NET運行時是無法找到已表示在應用配置中,以被稱爲的組件 - 幅的.config。所有你需要做的解決這個錯誤的方法是從應用程序中刪除所述程序集的引用[如果你沒有使用程序集中可用的任何組件] - 或者 - 使程序中的程序集/ DLL可用更值得推薦。以下是你如何做到這一點。

在開發工作站 - 請安裝ASP.NET AJAX 1.0

在生產服務器上 - 如果您的服務器沒有安裝ASP.NET AJAX 1.0擴展程序來部署應用程序,則需要將Systen.Web.Exntesions.dll放在您可以輕鬆使用的dll中得到它從

C:\Program Files\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions\v1.0.61025

假設您的程序文件夾在C:您可以從下面的鏈接找到更多的資源。

http://www.microsoft.com/downloads/details.aspx?FamilyID=ca9d90fa-e8c9-42e3-aa19-08e2c027f5d6&displaylang=en

http://www.asp.net/ajax?mid=474

+0

雅它解決了我只是安裝Ajax,現在它工作正常謝謝你 – 2010-05-17 09:03:22

0

那臺機器上安裝.NET Framework 3.5