Member
433 Points
31 Posts
May 10, 2018 05:44 PM|Satyaprakash Samantaray|LINK
For the global.asax, just add this code as your last route to register:
routes.MapRoute( "404-PageNotFound", "{*url}", new { controller = "StaticContent", action = "PageNotFound" } );
Member
433 Points
31 Posts
Re: 404 view in ASP.NET MVC without IIS settings
May 10, 2018 05:44 PM|Satyaprakash Samantaray|LINK
For the global.asax, just add this code as your last route to register: