Click here to Skip to main content
15,917,793 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello developer community.

I need someones assistance on a WCF service exception coming back from my server.

The message "..cannot be used for communication because it is in the Faulted state".

Is this be because I am throwing back a new FaultException() in all of my catches?

Is there a better way to get a simple, clean expcetion back from a WCF service.

FYI - In the WCF service I am writting the stack track and more details to the Event Viewer on the server where the service is I only need a simple message back from WCF.

Any help would be appreciaated! Thanks all!
Ranjan.D 21-Oct-13 19:41pm    
There are several reasons WCF communication cannot be done because its in Faulted State. Enclose your code in try-catch block and do a single step debug. Let us know there's any fault in your service.

1 solution

Share this answer
RonnieDean77 24-Oct-13 12:56pm    
Interestingly, I am already doing this. And, this only happens for a single call to an Oracle procdeure. I don't get this fault expcetion on other Oracle procedures and can even run the Oracle procedure from RapidSql (yuk!) and it runs fine. I was concerned that the Fault exception was not truely sending me "real" information about the fault....thus my question about fault exceptions. Sorry, i should have added the Oracle comments earlier.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900