System.TimeoutException:使用 CompositeServerSelector{ Selectors = MongoDB.Driver.MongoClient+AreSessionsSupportedServerSelector, LatencyLimitingServerSelector{AllowedLatencyRange = 00:00:00.0150000 } } 选择服务器 30000 毫秒后发生超时。集群状态的客户端视图为 { ClusterId : "1", ConnectionMode : "ReplicaSet", Type : "ReplicaSet", State : "Disconnected", Servers : [{ ServerId: "{ ClusterId : 1, EndPoint : "Unspecified/mongodb. net:27017" }",EndPoint:"未指定/mongodb.net:27017",ReasonChanged:"Heartbeat",状态:"已断开连接",ServerVersion:,TopologyVersion:,类型:"未知",HeartbeatException:"MongoDB.Driver。 MongoConnectionException: 打开与服务器的连接时发生异常。 ---> MongoDB.Driver.MongoConnectionException: 从服务器接收消息时发生异常。 ---> System.IO.EndOfStreamException: 尝试读取末尾内容在 MongoDB.Driver.Core.Misc.StreamExtensionMethods.d__4.MoveNext() --- 抛出异常的上一个位置的堆栈跟踪结束 --- 在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 处MongoDB.Driver.Core.Connections.BinaryConnection.d__54.MoveNext() 处的 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) --- 内部异常堆栈跟踪结束 --- MongoDB.Driver.Core.Connections 处。 BinaryConnection.d__57.MoveNext() --- 从先前引发异常的位置开始的堆栈跟踪结束 --- 在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 处,在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 处在 MongoDB.Driver.Core.WireProtocol.CommandUsingQueryMessageWireProtocol
1.d__16.MoveNext() --- End of stack trace from …