views:

841

answers:

1

How do you handle a TimeoutException that is generated when calling WebServices using the SoapClient?

There doesn't seem to be any event to be handled in order to catch any Exceptions generated when calling web services.

Is it possible to catch any Exceptions thrown, especially the TimeoutException??

I also posted this question to the Silverlight.net forums: http://silverlight.net/forums/p/46029/124010.aspx

A: 

Apparently, NO. There is no way to handle any Exceptions thrown when invoking Web Service Methods in Silverlight 2. Unless of course you create your own modified version of the SoapClient that Visual Studio auto-generates for you. This is a Terrible Design Flaw!!

Chris Pietschmann
Is this still true in Silverlight 3?
Bernard Vander Beken
Good question, I am facing that problem now.
WmasterJ