title: Kusto client failed to send a request to the service: Request headers must contain only ASCII characters
body: <p>I'm using the following code to generate a connectionstring</p>
  
  <pre><code>var kustoUri = $"https://{clusername}.{region}.kusto.windows.net";
  var dmKustoUri = $"https://ingest-{clusername}.{region}.kusto.windows.net";
  
  this.engineKustoConnectionStringBuilder = new KustoConnectionStringBuilder(kustoUri)
      .WithAadApplicationKeyAuthentication(applicationClientId, applicationKey, authority);
  this.dmKustoConnectionStringBuilder =
      new KustoConnectionStringBuilder(dmKustoUri)
          .WithAadApplicationKeyAuthentication(applicationClientId, applicationKey, authority);
  </code></pre>
  
  <p>But when I run a command like below</p>
  
  <pre><code>using (var client = KustoClientFactory.CreateCslAdminProvider(this.engineKustoConnectionStringBuilder))
  {
      var command = CslCommandGenerator.GenerateTableCreateCommand(table, columns);
  
      client.ExecuteControlCommand(command);
  }
  </code></pre>
  
  <p>I continuously get the error "Kusto client failed to send a request to the service: Request headers must contain only ASCII characters."</p>
  
  <p>I've enabled verbose tracing and I see it's still trying to connect with my Azure User instead of the AadApplicationKeyAuthentication</p>
  
  <p>Here is the log line:</p>
  
  <blockquote>
    <p>P.RestClient2 Information: 0 : ,2019-04-09T08:58:26.1875455Z,P.RestClient2,Information,5CG83138PZ,5CG83138PZ/dotnet/6744,6744,13324,cffdd7bc-7480-4141-a15b-9b6ce10523bc,cffdd7bc-7480-4141-a15b-9b6ce10523bc,DN-RestClient-ExecuteControlCommand,KD2RunCommand;94b12015-64aa-45a6-b087-b593965673ce,7EB32A3F,"$$HTTPREQUEST[RestClient2]: Verb=POST, Uri=<a href="https://REDACTED.westeurope.kusto.windows.net/v1/rest/mgmt" rel="nofollow noreferrer">https://REDACTED.westeurope.kusto.windows.net/v1/rest/mgmt</a>, App=dotnet, User=AzureAD\JoeyChömpff, ClientVersion=Kusto.Data:6.2.0-preview;.NET Core 2.0/CLRv4.0.30319.42000/[clr.dll!FileVersion not found], ClientRequestId=KD2RunCommand;94b12015-64aa-45a6-b087-b593965673ce"</p>
  </blockquote>
  
  <p>Nuget packages used:</p>
  
  <pre><code>&lt;PackageReference Include="Microsoft.Azure.Kusto.Data.NETStandard" Version="6.1.8" /&gt;
  &lt;PackageReference Include="Microsoft.Azure.Kusto.Ingest.NETStandard" Version="6.1.8" /&gt;
  </code></pre>
  
  <p>UPDATE:</p>
  
  <p>If I use FullFx 4.7.1 and their NuGetPackages it works!</p>
  
  <pre><code>  &lt;package id="Microsoft.Azure.Kusto.Data" version="6.1.8" targetFramework="net471" /&gt;
    &lt;package id="Microsoft.Azure.Kusto.Ingest" version="6.1.8" targetFramework="net471" /&gt;
  </code></pre>