Problem Description: After the client site accesses the WCF service, the page stays too long and the client site will error. The error content is as follows:
The communication object System.ServiceModel.Channels.ServiceChannel cannot be used for communication because it is in an "error" state.
What you see on the Web:
ReceiveTimeout as much as possible to set the value of large,inactivitytimeout as small as possible.
Reference content:
https://social.msdn.microsoft.com/Forums/zh-CN/50454233-5870-49c2-8943-c0c02d558c6f/ Systemservicemodelchannelsservicechannel-?forum=wcfzhchs
http://blog.csdn.net/sweetwxh/article/details/6738650
<wsHttpBinding>
<binding name= "wsbinding" maxreceivedmessagesize= "900000000"
opentimeout= "24:00:00" receivetimeout= "24:00:00"
sendtimeout= "24:00:00" >
<security mode= "Message" >
<!--define the type of message-level security requirements for the certificate---
<message clientcredentialtype= "Certificate"/>
</security>
</binding>
</wsHttpBinding>
The
Communication object System.ServiceModel.Channels.ServiceChannel cannot be used for communication because it is in an "error" state.