2012-04-27 6 views

答えて

5

使用これを:

<httpErrors errorMode="Custom" existingResponse="Replace"> 
    <remove statusCode="404" /> 
    <error statusCode="404" responseMode="ExecuteURL" path="/Errors/NotFound" /> 
</httpErrors> 
12

私もIIS7で.htmページ(ASPない、ない.NET)と同じ問題を抱えていました。

私は<system.webServer>File代わりのExecuteURLresponseModeを変更し、すべてが働いた:

<httpErrors errorMode="Custom" existingResponse="Replace"> 
    <remove statusCode="404" /> 
    <error statusCode="404" responseMode="File" path="error.htm" /> 
</httpErrors> 
関連する問題