使用mongovue连接数据库localhost:27017: 未将对象引用设置到对象的实例。.

在连接mongovue是连接不上问题:

Connection was refused
Unable to connect to server localhost:27017: 未将对象引用设置到对象的实例。.
Type: MongoDB.Driver.MongoConnectionException
Stack: 在 MongoDB.Driver.Internal.DirectMongoServerProxy.Connect(TimeSpan timeout, ReadPreference readPreference)

解决方法:

只需要下面三行不输入任何东西即可。直接这样测试便可连接成功。

 

posted @ 2017-10-17 01:07  Melanie_d  阅读(3929)  评论(0编辑  收藏  举报