2011-09-16 12 views
0

サーバーアプリケーションで次の例外が発生します。問題の原因は何か、問題をどのようにデバッグすることができますか。私はあなたのクライアントは、それが失敗した場合、チャネルを中止し、代わりにそれを閉じますしようとしていないので、おそらくだスレッド制御フロー例外

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) 
+1

[通信オブジェクトは通信が中止されたため使用できません](http://stackoverflow.com/questions/1722857/the-communication-object-cannot-be-used-for-communication- 〜のためにabo) – stuartd

+1

も参照してくださいhttp://www.danrigsby.com/blog/index.php/2008/02/26/dont-wrap-wcf-service-hosts-or-clients-in -a-using-statement / – stuartd

答えて

1

の異なるポイントからの例外を取得しています。残念ながら、wsdl.exeで生成されたクライアントプロキシとusingステートメントを使用している場合のデフォルトの動作です。