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=, 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>

造成這個問題的原因是這個站台有使用 AJAX,但是這個站台沒有安裝所需元件。
Cause of this problem is this site has to use 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