title: Getting a 404 when calling Authentication API using auth0.net
body: <p>I am trying to authenticate using <a href="https://github.com/auth0/auth0.net" rel="nofollow">auth0.net</a> (.NET client for the Auth0 API), however, I'm getting an <code>Auth0.Core.Exceptions.ApiException</code> error with an HTTP status code of <code>NotFound (404)</code>.</p>
  
  <p>I'm using the following code:</p>
  
  <pre><code>var client = new AuthenticationApiClient(new Uri(Auth0Url));
  
  var authenticationRequest = new AuthenticationRequest();
  authenticationRequest.ClientId = ClientId;
  authenticationRequest.Username = username;
  authenticationRequest.Password = password;
  authenticationRequest.Connection = "Username-Password-Authentication";
  
  AuthenticationResponse response = null;
  Task.Run(async () =&gt;
  {
      response = await client.AuthenticateAsync(authenticationRequest);
  }).Wait();
  </code></pre>
  
  <p>What is wrong here? The Management API works fine and the <code>ClientID</code> is correct.</p>