Quantcast
Channel: Active questions tagged mongodb-atlas - Stack Overflow
Viewing all articles
Browse latest Browse all 271

Parameter 'servers' Connection Problem Cross Platform

$
0
0

How can we solve this problem

"System.ArgumentOutOfRangeException: 'List of configured name servers must not be empty. (Parameter 'servers')'"

I tried test connection our Collections but I couldn't:

const string connectionUri = "mongodb+srv://<*****>:<******>@cluster0.jggom.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0";var settings = MongoClientSettings.FromConnectionString(connectionUri);// Set the ServerApi field of the settings object to set the version of the Stable API on the clientsettings.ServerApi = new ServerApi(ServerApiVersion.V1);

I used this way but it's showed timeout problem:

 const string connectionUri = "**mongodb:/**/<*****>:<******>@cluster0.jggom.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0";

Viewing all articles
Browse latest Browse all 271

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>