I am deploying a MVC3 application on IIS 7.5.
There are some errors which only occur on IIS 7.5, and I am attempting to debug them. However, whenever an error is triggered, the default error.cshtml is shown.
-
Is it possible to show detailed error messages, similar to how errors are handled in Visual Studio 2010?
-
How do I pass in exception details to error.cshtml when using the OnHandleError attribute?
Your
Error.cshtmlview should accept a model of typeHandleErrorInfo. You can get the exception detail from theModel.Exceptionproperty.For example, your view might look like: