Hi @月 王 ,
If you want to reproduce this error, you can try removing all the timeout values and using the sleep method to get the error.
To fix this error, you need to add a timeout parameter to both the server and the client. Or you can use the following methods to see what's going on:
- Try throttling in WCF services. eg: Try increasing concurrent sessions. Take a look WCF Throttling.
- Make sure that no session remains there, you could try using PerCall rather than Using Sessions here. You can follow the code below in your interface to remove session:
[ServiceContract(Namespace="YOUR OWN NAMESPACE", SessionMode=SessionMode.NotAllowed)]
and your contract classes implementing those interface :
ServiceBehavior(InstanceContextMode = InstanceContextMode.PerCall)]
And then you know what's going on.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.