title: MongoDB.Driver.MongoAuthenticationException C# connection
body: <p>I have this code based on a mongodb connection example, I am trying to insert an object.
  but getting and error on the insertone line</p>
  
  <p>This is the error data:
  <em>MongoDB.Driver.MongoAuthenticationException: 'Unable to authenticate using sasl protocol mechanism SCRAM-SHA-1.'
  Inner 
  MongoCommandException: Command saslContinue failed: bad auth Authentication failed..</em></p>
  
  <p>I am new using mongodb and got no idea of what is the error reason.
  Any help</p>
  
  <pre><code>static void Main(string[] args)
          {
              MongoClient dbClient = new MongoClient("mongodb+srv://dbUser:dbPass001@cluster0-pfry9.mongodb.net/test?retryWrites=true&amp;w=majority");
              var database = dbClient.GetDatabase("test");
  
              var collection = database.GetCollection&lt;anyClassTest&gt;("entities");
              var r = new anyClassTest() { name="Original", edad = 36, id = 1};
              collection.InsertOne(r);
          }
  
          public class anyClassTest
          {
              public string name { get; set; }
              public int edad { get; set; }
              public int id { get; set; }
          }
  </code></pre>