EHAB with ASP.NET

Topics: Exception Handling Application Block
Oct 11, 2010 at 11:00 AM

I have tried to install EHAB into an existing ASP.NET 4.0 solution. I expected that I would be able to do it without changing or adding to my c# source code. However, the documentation that I have found does not really address asp.net.

Can anyone give me a pointer to some good documentation or suggest what a simple configuration that catches all Exceptions and logs them to an XML file should look like in web.config?

Am I right that it should work without c# changes?

 

Oct 11, 2010 at 6:29 PM

No, you are not correct. You will have to add at least a top level error handler in your web application object to call into the block. ASP.NET is no different than any other .NET environment in this regard.