2012-04-27 16 views

cevap

5

bunu kullanın:

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

Ben de IIS7 .htm sayfalarında (değil ASP değil NET) ile de aynı sorunu vardı.

ben <system.webServer> içinde File yerine ExecuteURL için responseMode değişti ve her şey çalıştı:

<httpErrors errorMode="Custom" existingResponse="Replace"> 
    <remove statusCode="404" /> 
    <error statusCode="404" responseMode="File" path="error.htm" /> 
</httpErrors> 
İlgili konular