Do you use the HandleError attribute on any of your controllers? If this attribute is present when an unhandled exception occurs, ASP.NET MVC will look for a view named Error.aspx in the controller view folder. If he does not find it, he will look in the shared folders. If you have standard controllers in your project (for example, HomeController, AccountController), you will notice that they have an attribute.
source share