Avoiding try...catch for every method

Topics: Exception Handling Application Block, General discussion
Jul 23, 2007 at 8:31 PM
I have bunch of webservices (not using WSSF/WCF). So, for exception handling there are try...catch blocks in every webmethod. In order to avoid these same piece of code for try.. catch in every webmethod, is there any way to define it at one place. As I am not using WCF, I may not be able to use Exception Shielding attribute. Is this correct? If I have to use this class level attribute, should I have to change my total webservices implementation or is it ok to just refer their assemblies and use this attribute. What extra configurations should I make it to work?

Thank you !!