Best way to catch a WCF exception in Silverlight?

前端 未结 9 1053
悲哀的现实
悲哀的现实 2020-12-31 06:43

I have a Silverlight 2 application that is consuming a WCF service. As such, it uses asynchronous callbacks for all the calls to the methods of the service. If the service

9条回答
  •  一整个雨季
    2020-12-31 06:57

    To Handle this situation use the TargetInvocationException. This will catch the Exception when the network is down or your service is unavailable.

提交回复
热议问题