Questions tagged [faulted]

18 questions
19
votes
2 answers

Handle persistent WCF client entering faulted state

We've got a WCF service that we're consuming from a web app. The client we're using was generated using the Visual Studio "Add Service Reference" option. Since it's a web app, and since the nature of the app is likely to lead to relatively short…
Zann Anderson
  • 4,767
  • 9
  • 35
  • 56
13
votes
2 answers

How to heal faulted WCF channels?

When a single ClientBase instance is used for multiple WCF service calls, it can get a channel into a faulted state (ie. when the service is down). I would like to heal the channel automatically when the service comes up again. The only way I…
Jader Dias
  • 88,211
  • 155
  • 421
  • 625
8
votes
2 answers

What is System.ServiceModel.Diagnostics.CallbackException and why can't I handle it?

In my WCF client class I'm handling the Faulted() event so that if the remote service throws an exception and faults the channel I can still at least shut it down gracefully. Here's my code: protected void RemoteDataRetriever_Faulted(object sender,…
Jacobs Data Solutions
  • 4,850
  • 4
  • 33
  • 38
8
votes
2 answers

How to manage properly an exception in a Task with ContinueWith

After reading information about task and exepcion management, I am using this code to manage an exception thrown in a Task: Task myTask = Task.Factory.StartNew(doTask, CancellationToken.None, TaskCreationOptions.None,…
Ivan BASART
  • 819
  • 2
  • 11
  • 15
6
votes
1 answer

WCF Reliable session without transport security will not faulted event on time

I have encountered a very interesting behavior of reliable session. I am using netTcp binding + duplex channel + reliable session. When I am trying to listen on channel.faulted , if there is security mode is set to transport , faulted event would…
Yuan
  • 2,690
  • 4
  • 26
  • 38
4
votes
1 answer

The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it is in the Faulted state

The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it is in the Faulted state. I am getting this error, when windows application is trying to communicate with WCF hosted as Windows…
Manoj Shukla
  • 41
  • 1
  • 1
  • 4
2
votes
1 answer

zpool corrupted/faulted after reboot? Data lost?

I can't access my locale file system after a reboot. The problem is that I can't mount my zfs filesystem. On system startup it always tells me: "An operation is already pending". The result of this is, that my raspberry stored the external device…
OjunbamO
  • 29
  • 1
  • 3
2
votes
1 answer

Can a TPL Dataflow ActionBlock be Reset after a Fault?

I have a TPL Dataflow Action Block that I'm using to receive trigger messages for a camera, then do some processing. If the processing task throws an exception, the ActionBlock enters the faulted state. I would like to send a faulted message to my…
2
votes
1 answer

WCF Communication Host/Client. No reaction on connection-faults

i used this example for my wcf-service: http://www.codeproject.com/KB/IP/WCFWPFChatRoot.aspx?msg=3713905#xx3713905xx But if the server stops, the clients dont get it... The example handled it with: proxy.Open(); proxy.InnerDuplexChannel.Faulted +=…
user437899
  • 8,879
  • 13
  • 51
  • 71
2
votes
1 answer

WCF Callback Faulted - what happens to the session?

Just trying to get my head around what can happen when things go wrong with WCF. I have an implementation of my service contract declared with an InstanceContextMode of PerSession... [ServiceBehavior(InstanceContextMode =…
Remotec
  • 10,304
  • 25
  • 105
  • 147
1
vote
0 answers

Can't get WCF Duplex ChannelFactory to fault properly

Given a valid Binding and EndpointAddress, I have a WCF Duplex ChannelFactory like so: NetTcpBinding svcBinding = new NetTcpBinding(); svcBinding.ReliableSession.Enabled = true; EndpointAddress svcEndpointAddress = new EndpointAddress(new…
user3685285
  • 6,066
  • 13
  • 54
  • 95
1
vote
0 answers

CommunicationChannel faulted - DTexec vs. SQL Job Agent

I have a SSIS package with a Script task in it. In the script I use IRequestChannel to communicate with SAP RFC programme. Weird error is, that if I run the package via dtexec, I get the error message that my channel is in a faulted state and the…
Chris
  • 11
  • 1
1
vote
0 answers

Is there a WCF Client event on disconnection/faulted?

I am using netTcpBinding in WCF and I would like to know, on the client side, when it disconnects or when its channel state goes to faulted, so that I can reconnect with the server. The idea is creating a keep alive using channel events. I know it…
jpnavarini
  • 763
  • 4
  • 13
  • 25
1
vote
1 answer

ICommunicationObject.State do not work?

Hi, I create my WCF client with DuplexChannelFactory, the problem is that when I do this : ((ICommunicationObject)this.GetMyServiceInterfaceChannel).State I get the followin exception : Cannot obtain fields or call methods on the instance of type…
Banshee
  • 15,376
  • 38
  • 128
  • 219
0
votes
0 answers

How to throw an exception that makes that channel in faulted state WCF

I am using netMsmqBinding. The service goes to faulted state. It is hosted in windows service. One reason i know is when there is an unhandled exception the service goes to faulted state. My whole code is enclosed in try catch block. So my…
Bezhas
  • 53
  • 1
  • 6
1
2