This must be something I'm doing wrong as I can't find any other examples of the error.
When creating a server object using a URI containing a username, password and database, e.g.
var server = MongoServer.Create("mongo://User:pass...@1234.mongolab.com/dbname")
Then a db object,
var db = server.GetDatabase("dbname")
.... Then Perform some updates....
Then server.GetLastError() raises an invalid operation exception, message = "Connection Requires Credentials".
It all works fine locally without cress in uri.
Anyone experiences this or can see what I'm doing wrong?
Thanks in advance
Sam
Sam
--
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To view this discussion on the web visit https://groups.google.com/d/msg/mongodb-user/-/UcAshi0sAasJ.
To post to this group, send email to mongod...@googlegroups.com.
To unsubscribe from this group, send email to mongodb-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.