Re: global.aspx Application_error does not fire on anything other than
- From: "Juan T. Llibre" <nomailreplies@xxxxxxxxxxx>
- Date: Wed, 16 Jan 2008 14:05:35 -0400
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
.
- Follow-Ups:
- References:
- Re: global.aspx Application_error does not fire on anything other than
- From: Jeff Dillon
- Re: global.aspx Application_error does not fire on anything other than
- From: Shannon
- Re: global.aspx Application_error does not fire on anything other than
- From: Juan T. Llibre
- Re: global.aspx Application_error does not fire on anything other than
- From: Shannon
- Re: global.aspx Application_error does not fire on anything other than
- From: Juan T. Llibre
- Re: global.aspx Application_error does not fire on anything other than
- From: Shannon
- Re: global.aspx Application_error does not fire on anything other than
- From: jvcoach23
- Re: global.aspx Application_error does not fire on anything other than
- From: Juan T. Llibre
- Re: global.aspx Application_error does not fire on anything other than
- From: jvcoach23
- Re: global.aspx Application_error does not fire on anything other than
- From: Juan T. Llibre
- Re: global.aspx Application_error does not fire on anything other than
- From: Scott Roberts
- Re: global.aspx Application_error does not fire on anything other than
- Prev by Date: Re: Delegate Creation
- Next by Date: Re: global.aspx Application_error does not fire on anything other than
- Previous by thread: Re: global.aspx Application_error does not fire on anything other than
- Next by thread: Re: global.aspx Application_error does not fire on anything other than
- Index(es):
Relevant Pages
|