Forcing custom 404 pages for pages in URL Routing
Coding Platform ASP.NET 4.0 WebForms on IIS7.5 If I request a page blahblah.aspx which does not exist, I get navigated to my custom error page for Page not found Exception. I have implemented URL routing and so I have omitted all my .aspx extensions for routes. Now, If I type www.mysite.com/blahblah (thats a url without extension) instead of going to my custom error page, it gets redirected to my IIS 404 error page. What should I do to make my custom error page appear on my site instead of IIS error page? The Easy Way If your IIS 7 web server doesn't already have it, install the IIS 7.0