C#VB Copy <%@ Page Language="C#" %> . weblink We therefore need to add the following to the top of 404.aspx: <% Response.StatusCode = 404 %> We now get the correct status code, URL preserved and our custom error page. It really helps when you receive lots of details that put the error in context. foo.html) or a URL that doesn't match our routing configuration (e.g. /foo/bar/foo/bar) we get the standard IIS 404 error page. Server.getlasterror Namespace
They really don't need to see the technical details and it is possible that this will expose sensitive information. I have full Classic ASP errors and custom 404 handler. Normally you'd want this set to errorMode="DetailedLocalOnly". navigate here ASP.NET redirects any unhandled errors except HTTP 404 errors to this page.
I want to disable debugging in my asp.net projects but i want to show the users a pretty page but that page should send me an email with the details of Asp.net Custom Error Page Get Exception Requested URL: /foo/bar Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.33440 Not exactly friendly, is it? Aug 30, 2009 05:49 PM|BrownGhost|LINK I cant, when i try it i get a..
C#VB Copy <%@ Page Language="C#" %>