c# mongodb Command insert failed: there are no users authenticated. code example
Example: mongodb add admin user
use admin
db.createUser({
user: "username",
pwd: "password",
roles: [ "root" ]
})
use admin
db.createUser({
user: "username",
pwd: "password",
roles: [ "root" ]
})