Mvc: How to return a friendly view for 404?

Created on 15 Oct 2017  路  1Comment  路  Source: aspnet/Mvc

I want return a friendly view(using '_Layout.cshtml')

  • Call method 'ControllerBase.NotFound()'
  • Wrong Url

Most helpful comment

Have a look to a Diagnostics repo. Also I remember that I did something similar when I blogged about Create Configurable Error Pages in ASP.NET Core long time back

>All comments

Have a look to a Diagnostics repo. Also I remember that I did something similar when I blogged about Create Configurable Error Pages in ASP.NET Core long time back

Was this page helpful?
0 / 5 - 0 ratings