HTTP Error 404

A

Arne

I would like my 404 error to go to the IIS 404 error page and not to the
Asp.net error handler. Is that possible?

<customErrors mode="RemoteOnly" defaultRedirect="Error.aspx">
<error statusCode="404" redirect="" />
</customErrors>
 
A

Alexey Smirnov

I would like my 404 error to go to the IIS 404 error page and not to the
Asp.net error handler. Is that possible?

<customErrors mode="RemoteOnly" defaultRedirect="Error.aspx">
                 <error statusCode="404" redirect="" />
</customErrors>

I think you can copy it as 404.htm and use redirect in the web.config
file as

<error statusCode="404" redirect="~/Error/404.htm"/>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Error Handling 2
Error Handling Question(1) 3
Help please, custom 404 error 3
custom errors... 2
CustomErrors -WebConfing 2
Custom http errors 2
CUSTOM ERROR PAGES 1
CustomErrors statusCode 500 3

Top