How can I resolve this custom error redirect in ASP.NET

Posted by D. Veloper on Stack Overflow See other posts from Stack Overflow or by D. Veloper
Published on 2010-04-16T09:59:10Z Indexed on 2010/04/17 18:53 UTC
Read the original article Hit count: 319

Filed under:
|
|
|
|

I want to redirect all url errors

The url I want to cath is ~/bla/foo

It should redirect to ~/error404.aspx

bla exists as a folder. foo does not exist.

I already set the webconfig to point to my error but I just doesn't work. I get this error:

Server Error in application /.
-------------------------------------------------- ------------------------------

The source can not be found.
Description: HTTP 404. Perhaps you are looking for the source (or a dependency thereof)     removed or is temporarily unavailable or has changed its name. Check the spelling of the URL.

Requested URL: / bla/foo.asox

I google translate this error cuz VS here is language specific.

What can I do to resolve this??? I want to point to ~/error404.aspx

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about c#