After updating my DB version from 2.2 to 2.4 I've found that I couldn't execute Database.Eval() function from my C# code because "I don't have permissions to perform my task". After some investigation I've discovered that there were some changes in MongoDB:
With authentication enabled, db.eval() will fail during the operation if you do not have the permission to perform a specified task. Changed in version 2.4: You must have full admin access to run.
http://docs.mongodb.org/manual/reference/method/db.eval/
Can you advise me on how to specify those admin rights in my C# code?
Update 1: I didn't mention that I'm using login:password at the start of my connection string and the user is in the following roles: roles: [ "readWrite", "dbAdmin" ] } I'm also using the MongoHQ db hosting.
var connectionString = "mongodb://admin:password@localhost".