I am looking for help, we can create a custom Error404 page in ASP.NET 5 MVC6.
The closest I came to use
app.UseStatusCodePagesWithReExecute("/Error/{0}");
in the setup method of Startup.cs.
It works great by invoking the action "/ Error / 404".
I am considering ways how I can send another 404 response if there is no JPG / PNG / GIF request.
Any suggestion in the right direction would be very helpful.
asp.net-core asp.net-core-mvc
Vijay Bhatter Jan 18 '16 at 13:15 2016-01-18 13:15
source share