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

Related issues

pranavkm picture pranavkm  路  35Comments

dougbu picture dougbu  路  54Comments

simon25608 picture simon25608  路  34Comments

angelsix picture angelsix  路  61Comments

danroth27 picture danroth27  路  139Comments