The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication

前端 未结 14 1592
我寻月下人不归
我寻月下人不归 2020-12-04 05:43

The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it is in the Faulted state.

相关标签:
14条回答
  • 2020-12-04 06:44

    The server will automatically abort connections over which no message has been received for the duration equal to the receive timeout (default is 10 mins). This is a DoS mitigation to prevent clients from forcing the server to have connections open for an indefinite amount of time.

    Since the server aborts the connection because it has gone idle, the client gets this exception.

    You can control how long the server allows a connection to go idle before aborting it by configuring the receive timeout on the server's binding. Credit: T.R.Vishwanath - MSFT

    0 讨论(0)
  • 2020-12-04 06:45

    In my case the reason was some wrong certificate that could not be loaded. I found out about it from the Event Viewer, under System:

    A fatal error occurred when attempting to access the TLS server credential private key. The error code returned from the cryptographic module is 0x8009030D. The internal error state is 10001.

    0 讨论(0)
提交回复
热议问题