andrewdavey/NotFoundMvc — Issue #10: Remove /views/shared/_layout.cshtml link from Sample App
Author: stevejay
Created: 2012-01-14 18:41:27+00:00
State: open

The Sample App includes the error link /views/shared/_layout.cshtml. This link generates a 500 error because of the underscore at the start of the file name, and there appears to be no way to intercept the error to turn it into a 404 error. Given this, it seems reasonable to me to remove the link and instead rely on the site dealing with the error however it deals with 500 errors generated by the ASP.NET framework (as opposed to the ASP.NET MVC framework). In other words, I don't think that this scenario is in the remit for the NotFound Mvc package.