Configure ELMAH to

I work with a third-party ActiveX control that requests resources through a controller that I developed. Without Elmah, a return code of 500 when a resource is not found indicates the presence of an ActiveX control. However, if the request fails and Elmah catches and logs the error and redirects the ActiveX control to the error page, the ActiveX control assumes that the error page is the requested resource.

There is a lot of information on the Internet about filtering errors with Elmah , but I can not find any information on how to configure Elmah to exit, some errors are untouched and allow them to naturally flow back to the client.

My current thoughts are that I will need 2 websites, one for the resource controller and the other for everything else, but before I go this way, does anyone have any suggestions on setting up Elmah to ignore specific routes and / or error messages?

+4
source share
1 answer

As I understand your problem, you yourself gave a solution by providing a link to the filtering mechanism in ELMAH. Just let go of the error if it is created from an ActiveX control. Thus, ELMAH will not touch the error, and your web server will not work properly.

+2
source

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


All Articles