Question

Does anybody have any clever solutions that they've used to turn on customErrors for everybody except for "us", where us = everybody on our network, IP range, etc.

Therefore, outside world: friendly error page. Us: nasty yellow screen.

Was it helpful?

Solution

How about a friendly error page with additional info for internal guys (stack trace, line numbers etc)

You could easily add an ip address check in your custom error page and hide the nasty details from outside visitors.

OTHER TIPS

In the Global.asax there is a Application_Error method that is called whenever an exception occurs, maybe you can do something with that.

MSDN Article about Error Handlers

Try using ELMAH.

ELMAH stands for Error Logging Modules and Handlers, and it's an application-wide error logger.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top