我嘗試了很多方法,但無法執行此操作。我已經設置了web.config如下。用IIS擴展文件的IIS 7錯誤頁面
<?xml version="1.0"?>
<configuration>
<system.webServer>
<asp scriptErrorSentToBrowser="true"/>
<httpErrors>
<remove statusCode="404" subStatusCode="-1" />
<error statusCode="404" prefixLanguageFilePath="" path="/index.asp" responseMode="ExecuteURL" />
</httpErrors>
</system.webServer>
<system.web>
<customErrors mode="On" defaultRedirect="index.asp">
</customErrors>
<compilation debug="false"/>
</system.web>
</configuration>
當我嘗試這個網址
http://www.aboutmanchester.co.uk/wddwd.asp
它顯示一條消息,而不是錯誤頁面我提到,但是當我嘗試
http://www.aboutmanchester.co.uk/wddwd.aspx
我去自定義錯誤頁。
我試過這個,但仍然不工作.. – 2010-02-21 13:30:32