MongoDB.Driver.MongoConnectionException: Unable to connect to server localhost:27019: 由于目标计算机积极拒绝,无法连接。 127.0.0.1:27019. ---> System.Net.Sockets.SocketException: 由于目标计算机积极拒绝,无法连接。 127.0.0.1:27019 at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.Sockets.Socket.Connect(EndPoint remoteEP) at System.Net.Sockets.TcpClient.Connect(IPEndPoint remoteEP) at MongoDB.Driver.Internal.MongoConnection.Open() at MongoDB.Driver.Internal.MongoConnection.SendMessage(Stream stream, Int32 requestId) at MongoDB.Driver.Internal.MongoConnection.SendMessage(MongoRequestMessage message) at MongoDB.Driver.Operations.CommandOperation`1.Execute(MongoConnection connection) at MongoDB.Driver.MongoServerInstance.RunCommandAs[TCommandResult](MongoConnection connection, String databaseName, IMongoCommand command) at MongoDB.Driver.MongoServerInstance.Ping(MongoConnection connection) at MongoDB.Driver.MongoServerInstance.Connect() at MongoDB.Driver.Internal.DirectMongoServerProxy.Connect(TimeSpan timeout, ReadPreference readPreference) --- End of inner exception stack trace --- at MongoDB.Driver.Internal.DirectMongoServerProxy.Connect(TimeSpan timeout, ReadPreference readPreference) at MongoDB.Driver.Internal.DirectMongoServerProxy.ChooseServerInstance(ReadPreference readPreference) at MongoDB.Driver.MongoServer.AcquireConnection(ReadPreference readPreference) at MongoDB.Driver.MongoCursor`1.MongoCursorConnectionProvider.AcquireConnection() at MongoDB.Driver.Operations.QueryOperation`1.GetFirstBatch(IConnectionProvider connectionProvider) at MongoDB.Driver.Operations.QueryOperation`1.Execute(IConnectionProvider connectionProvider) at MongoDB.Driver.MongoCursor`1.GetEnumerator() at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source) at MongoDB.Driver.MongoCollection.FindOneAs[TDocument](FindOneArgs args) at MongoDB.Driver.MongoCollection.FindOneAs[TDocument](IMongoQuery query) at MongoDB.Driver.MongoCollection`1.FindOne(IMongoQuery query) at Duo.Super.Web.MongoHelperBase.FindOne[T](IMongoQuery query, String collectionName) at Duo.Super.Web.MongoHelperBase.FindOne[T](IMongoQuery query) at Duo.Super.Web.ProcessRequest.ReHtml(HttpContext context)