none
How can i get Fault exception from WCF rest service RRS feed

  • Question

  • how can I implement exception handling in restfull wcf service?

    My wcf servie is restfull and my client is MVC application.

    I want to throw specific error from wcfservice method to its calling MVC controller. 

    I tried webfaultexception<customerror> and Faultexception in wcf and trying to access in MVC website client.when exception raised it will never go in webfaultexception catch block.it always go in exception catch block.

    In both the cases webfaultexception<customerror> and Faultexception  I am not able to catch exacts error message.

    So please give me good example with code for my this problem..   

    Tuesday, August 19, 2014 11:19 AM

Answers

All replies