網頁

Thursday, April 1, 2010

IIS Server Error in '/' Application. Configuration Error

今天解了一個問題,知道解法後算是很簡單的問題,不知道的時候真的蠻頭大的。

狀況是這樣子,我在電腦A的 IIS 6上,將Web站台的目錄指到電腦B的資料夾去,設定完成後可讀html,但是ASPX等檔案就出現下面這個錯誤。

Configuration Error

Server Error in '/' 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: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

Source Error:
Line 1: <httpModules>
Line 2: <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
Line 3: </httpModules>

造成這個問題的原因是這個站台有使用ASP.net AJAX,但是這個站台沒有安裝所需元件。
Cause of this problem is this site has to use ASP.net AJAX, but this site didn't install required components.
解決的方法就是去微軟下載ASP.NET AJAX 1.0(ASPAJAXExtSetup.msi),然後安裝它,問題就可以解決了。
To solve it , you can go download ASP.NET AJAX 1.0(ASPAJAXExtSetup.msi) from Microsoft , install it , then mythbuster ;-)

No comments:

Post a Comment