Users Pricing

forum

home / developersection / forums / 404 page not found error for an asp.net mvc application

404 page not found error for an ASP.NET MVC application

Anonymous User 2183 09 Nov 2014
Hi Guys

This must be simple and already answered, but I've wasted many hours on it. I can't figure how to get an error page on mistyped address. Also I'd prefer not to redirect, but to keep the URL. I've tried many combinations of CustomErrors, HttpErrors and Application_Error, but nothing works for non-existent controller - depending on HttpErrors I always get IIS 404.0 page or just an empty 404 response. Running on IIS 7.5, MVC 3.

I am a content writter !


1 Answers