ASP.NET / Web.config: customErrors redirect only on a 404
问题 I have this scenario: A user comes to my site and followes a link, wich doesnt exists anymore, he should be redirected to a custom errorpage. (that works) If a user does something, that throws an error, he should see the Stacktrace and the real Errorpage. This is my current Web.config: <?xml version="1.0" encoding="utf-8" ?> <configuration> <system.web> <customErrors> <error statusCode="404" redirect="/errors/404.htm" /> </customErrors> <compilation debug="true" strict="false" explicit="true"