RE: How to add 404 error page on asp.net based website?

Hi 

Finally, I did. This is the Process for ASP.NET 404-Error Page create
1. Create you Error page 404.aspx Extension File (Like 404.html).
2. Go to Web.Config File and put this code
<system.webServer>
   <httpErrors errorMode=”Custom” existingResponse=”Replace”>
   <remove statusCode=”404″/>
   <error statusCode=”404″ path=”404.aspx” responseMode=”Redirect”/>
   </httpErrors>
<system.webServer>

Be the first to post a comment.

Add a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.