通信对象 System.ServiceModel.ChannelFactory`处于故障状态

问题描述

大家好,在阅读之前请阅读整篇文章,不要标记我说这个问题以前被问过。

我有一个 WCF 并且通过 URL 工作正常并提供凭据。

我正在尝试使用 WCF 调用 Reporting Services。

我们如何检查 Channel Factory 是否处于 Faulted 状态以及如何使其启动并运行,以便我可以使用 Web 服务。

它在浏览器中工作,但是在使用网络服务时给我一个错误,说通道工厂处于故障状态。

你们能告诉我在客户端我应该怎么做才能更好地了解错误

我已经尝试了所有的方法..我增加了 maxReceivedMessageSize。

请告诉我如何处理 WCF 错误解决上述问题。

使用可以查看这个我在WebConfig文件中使用过的内容

<system.serviceModel>
        <bindings>
   <basicHttpBinding>
       <binding name="ReportExecutionServiceSoap"  receiveTimeout="05:00:00" sendTimeout="05:00:00" allowCookies="true" maxReceivedMessageSize="5242880">
           <security mode="TransportCredentialOnly">
               <transport clientCredentialType="Ntlm" proxyCredentialType="None" realm="" />
               <message clientCredentialType="UserName" algorithmSuite="Default" />
           </security>
       </binding>
   </basicHttpBinding>
  </bindings>
        <client>
   <endpoint address="http://../reportserver/ReportExecution2005.asmx"
    binding="basicHttpBinding" bindingConfiguration="ReportExecutionServiceSoap"
    contract="MyServiceReference.ReportExecutionServiceSoap" name="basicHttpEndpoint" />
  </client>
    </system.serviceModel>

我曾尝试超过消息大小。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)