Questions tagged [faulted]

18 questions
0
votes
1 answer

How to manually create wcf service fault exception?

I want to manually make the wcf service channel to enter to faulted state to test a singleton object. I tried many solutions like changing 1. consuming incorrect service host name, 2. Incorrect host ip, 3. reducing exeution time to trigger timeout…
Naveen
  • 5
  • 2
0
votes
0 answers

Not able to access the state of ClientChannel created in a ChannelFactory. (ICommunicationObject)proxy).State

(ICommunicationObject)proxy).State gives an error "Cannot obtain fields or call methods on the instance of type 'System.ServiceModel.ICommunicationObject' because it is a proxy to a remote object" I tried using IClientChannel but still I was…
Sailoosha
  • 193
  • 1
  • 3
  • 14
0
votes
1 answer

Close and Abort in custom service channel

My client is using one WCF service which is throwing an exception (EXCEPTION: The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it is in the Faulted state). All subsequent calls throwing…
sudhirk
  • 423
  • 1
  • 5
  • 12
1
2