Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Provides a user-friendly '404' page whenever a controller, action or route is not found in your ASP.NET MVC3 application. A view called NotFound is rendered instead of the default ASP.NET error page.
branch: master
Failed to load latest commit information.
package new build.bat
sample Update sample project VS version
src Update NotFoundMvc.nuspec
.gitignore new build.bat
build.bat new build.bat
readme.md Update readme.md

readme.md

NotFoundMvc

daviddesloovere MyGet Build Status

Created by Andrew Davey - http://aboutcode.net/ - andrew@equin.co.uk

Provides a user-friendly '404' page whenever a controller, action or route is not found in your ASP.NET MVC3/MVC4/MVC5 application. A view called NotFound is rendered instead of the default ASP.NET error page.

Add via nuget using: Install-Package NotFoundMvc

Take a look at the sample application for basic usage. Essentially you just have to reference the NotFoundMvc assembly and add a NotFound view to your app.

NotFoundMvc automatically installs itself during web application start-up. It handles all the different ways a 404 HttpException is usually thrown by ASP.NET MVC. This includes a missing controller, action and route.

A catch-all route is added to the end of RouteTable.Routes. The controller factory is wrapped to catch when controller is not found. The action invoker of Controller is wrapped to catch when the action method is not found.

Something went wrong with that request. Please try again.