[CSHARP-421] Format of the initialization string does not conform to specification starting at index 0. Created: 30/Mar/12  Updated: 19/Oct/16  Resolved: 30/Mar/12

Status: Closed
Project: C# Driver
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: mahendar.gunda Assignee: Robert Stam
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

string connectionString = "mongodbtest://mahi:mahi@localhost:27017";
MongoServer mongo = MongoServer.Create(connectionString); //here i am getting error.



 Comments   
Comment by Robert Stam [ 30/Mar/12 ]

Your connection string is not valid. It should be:

string connectionString = "mongodb://mahi:mahi@localhost:27017";

The first part should be "mongodb", not "mongodbtest".

Generated at Wed Feb 07 21:36:47 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.