Link to home
Start Free TrialLog in
Avatar of gsdevEE
gsdevEEFlag for United States of America

asked on

Automatically Handling Exceptions : Soap vs. Client - C#

I am working with Enterprise level applications that consist of a windows app,  2 websites, 2 webservices(C#).  My question is somewhat broad, but I am looking for examples.  We are using Exception Policies implemented with EnterpriseLibrary.  The main issue I am trying to workout is to throw exceptions that will be caught by both client and server applications.  For example, one of the websites and webservices is a custom security provider. It uses both active directory and asp.net providers (sql and oracle).  Both the other website and windows app both use the security sites webserive to connect to the provider.  I do not want to have to pass in which system is calling the service (as there are a million other calls to the service besides this one), so I want to figure out a way to throw a custom exception that can be caught by both windows and web applications - from my understanding windows applications cannot catch soap exceptions - if you need more information, let me know - but the main point is I am looking for an exception class that can be thrown over the wire to both webservice and windows apps - and I am restricted to using .Net 2
ASKER CERTIFIED SOLUTION
Avatar of lenordiste
lenordiste
Flag of France image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial