Maanu
Maanu

Reputation: 5203

Control Flow Exception

I am getting the following exception in the server application. What could be the reason for the issue and how can I debug the issue. I am getting the exception from different points of the thread

ICC_SequenceService_SequenceReportService.NotifyEventRecived]-Exception Occured :The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it has been Aborted.-
Server stack trace: 

   at System.ServiceModel.Channels.CommunicationObject.ThrowIfDisposedOrNotOpen()
   at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs)
   at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
   at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Upvotes: 0

Views: 262

Answers (1)

VdesmedT
VdesmedT

Reputation: 9113

That's probably because your client don't abort the channel when it is failed and try to Close it instead. That's unfortunately the default behavior if you are using a client proxy generated by wsdl.exe and a using statement.

Upvotes: 1

Related Questions