I also had a problem with .htm
pages in IIS7 (not ASP, not .NET).
I changed responseMode
to File
instead of ExecuteURL
in <system.webServer>
, and it worked:
<httpErrors errorMode="Custom" existingResponse="Replace"> <remove statusCode="404" /> <error statusCode="404" responseMode="File" path="error.htm" /> </httpErrors>
source share