c# 连接mongodb数据的一个错误, Unable to connect to a member of the replica set matching t
c# 连接mongodb数据的一个错误,
Unable to connect to a member of the replica set matching the read preference Primary
不知道怎么搞定啊,
我在本机架设了一个mongodb服务器,连接的时候就报上面这个错误。也不知道错在哪里。还是我的配置有问题,
下面是我的配置,这个项目接的同事的,他已经走了。
<!-- MongoDB数据库连接字符串 -->
<add key="MongoDbUserId" value="" />
<add key="MongoDbPassword" value="" />
<add key="MongoDbDatabase" value="opensystem" />
<!--<add key="ReplicaSetName" value=""/>-->
<!--<add key="ReplicaSetName" value="localhost"/>-->