通信オブジェクトSystem.ServiceModel.Channels.ServiceChannelは、Faulted状態であるため、通信に使用できません。
WindowsアプリケーションがwsDualHttpBindingを介してWindowsサービスとしてホストされているWCFと通信しようとすると、このエラーが発生します。WCFは、シリアルポートを介してデバイスと通信するために使用されます。WCFWindowsサービスを介してコマンドを頻繁に送信するために使用されるWindowsアプリケーション。
スタックトレースは次のとおりです。
スタックトレース: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.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall、ProxyOperationRuntime operation)at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
[0]で再スローされた例外:System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg、IMessage retMsg)at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&msgData、Int32 type)atGridSplitter.CommandServiceReference。 ICommandService.SendToMultipleChannel(String [] channel、Int32 [] [] locid、String cmd、Int32 cmdData)at GridSplitter.CommandServiceReference.CommandServiceClient.SendToMultipleChannel(String [] channel、Int32 [] [] locid、String cmd、Int32 cmdData)at GridSplitter.MainWindow.bwChkAndSendRedeploy_DoWork(オブジェクト送信者、DoWorkEventArgs e):11/9/2012 11:05:58 AM
- なぜサービスが故障状態になっているのか理解できませんでした。
- この例外をキャッチして、パッチワークを実行する必要がありますか(推奨されている場合)?
- TCPバインディングは、この例外を回避/削除するのに役立ちますか?