Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does ASP.net health monitoring work with asmx web services

I'm trying to use ASP.net health monitoring to log unhandled exceptions from an asmx web service. I've enabled health monitoring in the web.config but it's not logging anything. Does health monitoring work with asmx web services? I've googled around and seems other people have asked the same question but never got a definite answer.

like image 832
hwiechers Avatar asked Dec 22 '22 14:12

hwiechers


1 Answers

Please do not post a response unless it answers the question being asked. Half answers to something other than the question confuses the reader. Health monitoring has nothing to do with either "really unhandled" ASP.NET exceptions or the Application_Error event.

The answer is no. I have digged this a bit and for some reason exceptions raised within web methods never make it to the health monitoring providers. It looks like you have to catch them and handle yourself.

like image 64
rciq Avatar answered May 09 '23 10:05

rciq