8,737
社区成员
发帖
与我相关
我的任务
分享
用户代码未处理 System.ServiceModel.CommunicationException
Message=服务器未提供有意义的回复;这可能是由协定不匹配、会话过早关闭或内部服务器错误引起的。
StackTrace:
位于 System.ServiceModel.AsyncResult.End[TAsyncResult](IAsyncResult result)
位于 System.ServiceModel.Channels.ServiceChannel.EndCall(String action, Object[] outs, IAsyncResult result)
位于 System.ServiceModel.ClientBase`1.ChannelBase`1.EndInvoke(String methodName, Object[] args, IAsyncResult result)
位于 SLA_Fax.FaxServiceProxy.FaxServiceClient.FaxServiceClientChannel.EndSendFax(CustomException& status, IAsyncResult result)
位于 SLA_Fax.FaxServiceProxy.FaxServiceClient.SLA_Fax.FaxServiceProxy.IFaxService.EndSendFax(CustomException& status, IAsyncResult result)
位于 SLA_Fax.FaxServiceProxy.FaxServiceClient.OnEndSendFax(IAsyncResult result)
位于 System.ServiceModel.ClientBase`1.OnAsyncCallCompleted(IAsyncResult result)
InnerException:
<readerQuotas maxDepth="32" maxStringContentLength="888192" maxArrayLength="2147483647"
maxBytesPerRead="2147483647" maxNameTableCharCount="16384" />
//服务端
<system.serviceModel>
<bindings>
<netTcpBinding>
<binding name="CustomNetTcpBinding" maxReceivedMessageSize="2147483647">
<security mode="None" />
<readerQuotas maxDepth="32" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
</binding>
</netTcpBinding>
</bindings>
<behaviors>
<serviceBehaviors>
<behavior>
<serviceMetadata httpGetEnabled="False"/>
<serviceDebug includeExceptionDetailInFaults="true"/>
<dataContractSerializer maxItemsInObjectGraph="6553600"/>
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
//客户端
<bindings>
<customBinding>
<binding name="NetTcpBinding_IFaxService">
<binaryMessageEncoding />
<tcpTransport maxReceivedMessageSize="2147483647" maxBufferSize="2147483647" />
</binding>
</customBinding>
</bindings>