We set a custom 404 error page to display a βniceβ page instead of the default IIS page.
If you try to access a non-existing page with a known file extension (for example, http: //mydomain/dumb.aspx ), a user page 404 will be displayed.
When you try to access a file with an unknown file extension (for example, http: //mydomain/index.dumb ), a page with a default error of 404 is displayed.
What puzzles me is that the IIS kernel handles the error:
Module name: IIS Web Core
Notice: 16
HttpStatus: 404 HttpReason: not found
HttpSubStatus: 0
ErrorCode: 2147942402 ConfigExceptionInfo: Notification: MAP_REQUEST_HANDLER ErrorCode: the system cannot find the file specified. (0x80070002)
But the configured user error page is taken into account in a note:
<httpErrors errorMode="Detailed">
<remove statusCode="404" subStatusCode="-1" />
<error statusCode="404" prefixLanguageFilePath="" path="/httpError" responseMode="ExecuteURL" />
</httpErrors>
We have handler mappings for *, but not for., Could this be the cause of the problem? What will be the correct configuration?
source
share