Hi,
Does anyone know why I could not connect to the cloud? I have asked the Mongo support but they asked me to read the Documentation and followed everything.
-
Use it on C# and MERN (Node) and still getting the errors, cloud.mongodb:
a. npm start : Could not connect to any servers in your MongoDB Atlas cluster.
checked the connection string : mongodb+srv://[rlotho:]@cluster0.laj0p.mongodb.net/MEMORY?w=majority (but MEMORY does not exists yet, i assume it will be created? if not, what should i put in there)
b. c#: MongoClient dbClient = new MongoClient("mongodb+srv://rlotho:@cluster0.laj0p.mongodb.net/db-name?connect=replicaSet"); or
mongodb+srv://rlotho:**@cluster0.laj0p.mongodb.net/db-name?retryWrites=true&w=majority
(I get a timeout error) -
we do have a MongoDB compass localhost:27017 for a project at work, and this is able to connect to the Mongo local installed.
thank you.