ASP.NET CustomErrors - RemoteOnly, where "remote" means outside our network

Does anyone have smart solutions that they used to enable customErrors for everyone except "us", where us = everything on our network, IP range, etc.

Therefore, the outside world: a friendly error page. Us: unpleasant yellow screen.

+3
source share
3 answers

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

You can easily add ip address verification to your error page and hide unpleasant data from external visitors.

+4
source

Global.asax Application_Error, , , , - .

MSDN

+2

Try using ELMAH .

ELMAH stands for error logging modules and error handlers, as well as an application error logger.

+1
source

Source: https://habr.com/ru/post/1711013/


All Articles