仅在Soap,本地IIS中出现错误,而在WCF测试客户端中则没有错误

时间:2018-12-14 01:51:32

标签: c# .net wcf wcf-binding wcftestclient

仅当我从Visual Studio本地从服务的本地IIS URL和/或在SOAP UI中从SOAP UI调用操作时,才出现以下错误,当我使用WCF测试客户端进行测试时,它运行正常。您是否认为这是部署问题?

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<s:Fault>
<faultcode xmlns:a="http://schemas.microsoft.com/net/2005/12/windowscommunicationfoundation/dispatcher">a:InternalServiceFault</faultcode>
<faultstring xml:lang="en-AU">The communication object, System.ServiceModel.ChannelFactory`1[MyService], cannot be used for communication because it is in the Faulted state.</faultstring>
<detail>
<ExceptionDetail xmlns="http://schemas.datacontract.org/2004/07/System.ServiceModel" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<HelpLink i:nil="true"/>
 <InnerException i:nil="true"/>
 <Message>The communication object, System.ServiceModel.ChannelFactory`1MyService], cannot be used for communication because it is in the Faulted state.</Message>
 <StackTrace>
at System.ServiceModel.Channels.CommunicationObject.Close(TimeSpan timeout)
at System.ServiceModel.ClientBase`1.System.ServiceModel.ICommunicationObject.Close(TimeSpan timeout)
at MyService.Update(Data input) in 
at SyncInvokeSubmitClaim(Object , Object[] , Object[] )
at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]&amp; outputs)
at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc&amp; rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc&amp; rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage11(MessageRpc&amp; rpc)
at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)
 </StackTrace>
<Type>System.ServiceModel.CommunicationObjectFaultedException</Type>
</ExceptionDetail>
</detail>
</s:Fault>
</s:Body>
</s:Envelope>

0 个答案:

没有答案