MongoDB.Driver.MongoConnectionException:从服务器接收消息时发生异常。 ---> System.IO.IOException:无法从传输连接中读取数据:连接被对等方重置。 ---> System.Net.Sockets.SocketException:连接被对等方重置
在System.Net.Sockets.NetworkStream.Read(Byte []缓冲区,Int32偏移量,Int32大小)
---内部异常堆栈跟踪的结尾---
在System.Net.Sockets.NetworkStream.Read(Byte []缓冲区,Int32偏移量,Int32大小)
在MongoDB.Driver.Core.Misc.StreamExtensionMethods.ReadBytes(流流,Byte []缓冲区,Int32偏移量,Int32计数,CancellationToken cancelledToken)
在MongoDB.Driver.Core.Connections.BinaryConnection.ReceiveBuffer()处
---内部异常堆栈跟踪的结尾---
在MongoDB.Driver.Linq.MongoQueryProviderImpl 1.Execute(Expression expression)
at MongoDB.Driver.Linq.MongoQueryProviderImpl
1.Execute [TResult](表达式表达式)处
在System.Linq.Queryable.FirstOrDefault [TSource](IQueryable 1 source, Expression
1谓词)
已经尝试设置连接保持活动