I have been created Mongodb Database via add-on of MongoLab on Azure Cloud. I have been able to connect to database but i always get below exception;
Command 'count' failed: db assertion failure (response: { "assertion" : "unauthorized db:YourDefinition ns:YourDefinition.Terms lock type:1 client:94.245.107.14", "assertionCode" : 10057, "errmsg" : "db assertion failure", "ok" : 0.0 })
How can i get rid of this problem ?
Update :
Here is my connection string
"mongodb://YourDefinitionDB:hQIkxfNlgF8rp6o6zb4KDVe_t8RILePrBLPieIvWS1M-@ds045087.mongolab.com:45087/YourDefinitionDB"
I have used wrong database name but still i get below exception.
Command 'authenticate' failed: auth fails (response: { "errmsg" : "auth fails", "ok" : 0.0 })
I can say that it works on external gui but not via .net driver.