Re: global.aspx Application_error does not fire on anything other than

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



re:
!> Another option is to simply set a custom page for 404 errors in IIS.

404s for html, asp, etc. are handled "out of the box" by IIS,
without the need for a custom page for 404 errors, but .aspx files are not.

Remember, .aspx files go through the ASP.NET ISAPI application; html, asp, etc. files don't.

You're right, though, that is an option...for html files, for .asp files and,
in general, for any file that doesn't go through the ASP.NET ISAPI app.




Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Scott Roberts" <sroberts@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:O9IrkeGWIHA.4448@xxxxxxxxxxxxxxxxxxxxxxx
Another option is to simply set a custom page for 404 errors in IIS.


"Juan T. Llibre" <nomailreplies@xxxxxxxxxxx> wrote in message news:eJh4uZGWIHA.4880@xxxxxxxxxxxxxxxxxxxxxxx
Try using the .aspx extension...

Look at the difference between :

http://asp.net.do/test/some.html
and
http://asp.net.do/test/some.aspx

If you want non-existent .html pages to be responded to with a custom page,
add the extension to the files processed by ASP.NET.



Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"jvcoach23" <shannonr@xxxxxxxxxxxxxxxxx> wrote in message news:di2vo1o5m12c$.plsdyvynhl5p.dlg@xxxxxxxxxxxxx
i did as you suggested... added the code to the application_error and
commented out all my code that was in that sub

added the new page

modified the web.config file

when i hit the page that does not exists, i get a page "The page cannot be
found" error. i do not get redirected.

so after having checked the rights for the user, uninstalling and
reinstalling .net and IIS, what is the next step in the troubleshooting
list.

thanks again for all the pointers and help. Hope you can continue to help
me through this.

thanks
shannon





.



Relevant Pages

  • Re: ASP is not working
    ... That will display the actual error experience by IIS. ... >> I'm assuming you are referring to classis ASP and not ASP.NET? ... >> The Microsoft Office Web Components Black Book with .NET ... >>> plain HTML; I see the error 4 times and the HTML correctly. ...
    (microsoft.public.dotnet.general)
  • Re: asp problem in IIS5.1
    ... > I have windows XP with IIS 5.1. ... > with HTML Pages.but it is not working with ASP pages. ... > Server Application Error ...
    (microsoft.public.inetserver.asp.components)
  • Re: Supressing Public ASP Error Codes
    ... Please read the IIS documentation on custom error pages, ... specific internal server error caused by an ASP related error. ... IIS will send this error page to the client, rather than the existing page + ... following error message that was displayed at the bottom of the ...
    (microsoft.public.inetserver.iis.security)
  • Re: Supressing Public ASP Error Codes
    ... Create your own custom 500-100.asp error page. ... Customise your website in IIS, so that the 500-100 error page points to your ... I am not a literate ASP programmer and the ...
    (microsoft.public.inetserver.iis.security)
  • Re: ASP/C# Problem...please help oh wise programming people :)
    ... > You've most likely lost ASP .NET bindings while reinstalling IIS. ... > recognize the pages by their file extensions so it will render an HTML ... > to the browser as is, and will invoke ASP .NET to process an ASPX page. ...
    (microsoft.public.dotnet.languages.csharp)