Custom errors not working with IISExpress
问题 I have a asp.net mvc application and am trying to get custom errors working with IISExpress. Works in Casini fine: <customErrors mode="On" defaultRedirect="/error"> <error statusCode="404" redirect="/error/notfound"/> </customErrors> When I've deployed mvc sites to IIS (7.5) before, all I had to do get my custom errors working was to set: <httpErrors errorMode="Detailed"/> I've tried explicitly specifying the status codes within the httpErrors section but nothing works. Here's an example: