Wednesday, August 29, 2012

how can I get the actual exception from remote webservice in silverlight client?

how can I get the actual exception from remote webservice in silverlight client?

[WebMethod]     public void Test()     {         throw new ArgumentNullException();     } 

I want get the actual Exception (eg:ArgumentNullException) in silverlight client webservice call completed method. how can i implement it?

Answers & Comments...

Answer: 1

The Completed event should have two parameters it is expecting back: object sender, and the event's CompletedEventArgs collection, named e.

The completed event args contains an Exception, e.Error, which should be the exception that was returned.

by : lori.lalondehttp://stackoverflow.com/users/1410533




No comments:

Post a Comment

Send us your comment related to the topic mentioned on the blog