title: Could not load file or assembly 'Microsoft.Azure.Services.AppAuthentication, Version=1.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
body: <p>While trying to configure the AzureKeyVaultConfigBuilder for my .NET Framework 4.7.1 application I am getting the following error:</p>
  <p>&quot;Could not load file or assembly 'Microsoft.Azure.Services.AppAuthentication, Version=1.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)&quot;.</p>
  <p>I don't know why this is occurring. I cloned my git project to another directory and re-installed the Azure nuget packages but it is still happening. Am I supposed to setup configuration somewhere else? I also can't find the Microsoft.Azure.Services.AppAuthentication, Version=1.0.1.0 in my code.</p>
  <p><a href="https://i.stack.imgur.com/4Suy4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4Suy4.png" alt="Web Error" /></a></p>
  <p><code>web.config bindings</code></p>
  <pre><code>&lt;assemblyBinding xmlns=&quot;urn:schemas-microsoft-com:asm.v1&quot;&gt;
    &lt;dependentAssembly&gt;
      &lt;assemblyIdentity name=&quot;System.Web.Mvc&quot; publicKeyToken=&quot;31bf3856ad364e35&quot; /&gt;
      &lt;bindingRedirect oldVersion=&quot;1.0.0.0-2.0.0.0&quot; newVersion=&quot;3.0.0.0&quot; /&gt;
    &lt;/dependentAssembly&gt;
    &lt;dependentAssembly&gt;
      &lt;assemblyIdentity name=&quot;Newtonsoft.Json&quot; publicKeyToken=&quot;30ad4fe6b2a6aeed&quot; culture=&quot;neutral&quot; /&gt;
      &lt;bindingRedirect oldVersion=&quot;0.0.0.0-13.0.0.0&quot; newVersion=&quot;13.0.0.0&quot; /&gt;
    &lt;/dependentAssembly&gt;
    &lt;dependentAssembly&gt;
      &lt;assemblyIdentity name=&quot;System.Net.Http&quot; publicKeyToken=&quot;b03f5f7f11d50a3a&quot; culture=&quot;neutral&quot; /&gt;
      &lt;bindingRedirect oldVersion=&quot;0.0.0.0-4.1.1.3&quot; newVersion=&quot;4.1.1.3&quot; /&gt;
    &lt;/dependentAssembly&gt;
    &lt;dependentAssembly&gt;
      &lt;assemblyIdentity name=&quot;Microsoft.Azure.KeyVault&quot; publicKeyToken=&quot;31bf3856ad364e35&quot; culture=&quot;neutral&quot; /&gt;
      &lt;bindingRedirect oldVersion=&quot;0.0.0.0-3.0.5.0&quot; newVersion=&quot;3.0.5.0&quot; /&gt;
    &lt;/dependentAssembly&gt;
    &lt;dependentAssembly&gt;
      &lt;assemblyIdentity name=&quot;Microsoft.Azure.Services.AppAuthentication&quot; publicKeyToken=&quot;31bf3856ad364e35&quot; culture=&quot;neutral&quot; /&gt;
      &lt;bindingRedirect oldVersion=&quot;0.0.0.0-1.6.1.0&quot; newVersion=&quot;1.6.1.0&quot; /&gt;
    &lt;/dependentAssembly&gt;
    &lt;dependentAssembly&gt;
      &lt;assemblyIdentity name=&quot;System.Numerics.Vectors&quot; publicKeyToken=&quot;b03f5f7f11d50a3a&quot; culture=&quot;neutral&quot; /&gt;
      &lt;bindingRedirect oldVersion=&quot;0.0.0.0-4.1.4.0&quot; newVersion=&quot;4.1.4.0&quot; /&gt;
    &lt;/dependentAssembly&gt;
    &lt;dependentAssembly&gt;
      &lt;assemblyIdentity name=&quot;System.Runtime.CompilerServices.Unsafe&quot; publicKeyToken=&quot;b03f5f7f11d50a3a&quot; culture=&quot;neutral&quot; /&gt;
      &lt;bindingRedirect oldVersion=&quot;0.0.0.0-4.0.5.0&quot; newVersion=&quot;4.0.5.0&quot; /&gt;
    &lt;/dependentAssembly&gt;
    &lt;dependentAssembly&gt;
      &lt;assemblyIdentity name=&quot;System.Buffers&quot; publicKeyToken=&quot;cc7b13ffcd2ddd51&quot; culture=&quot;neutral&quot; /&gt;
      &lt;bindingRedirect oldVersion=&quot;0.0.0.0-4.0.3.0&quot; newVersion=&quot;4.0.3.0&quot; /&gt;
    &lt;/dependentAssembly&gt;
    &lt;dependentAssembly&gt;
      &lt;assemblyIdentity name=&quot;System.Memory&quot; publicKeyToken=&quot;cc7b13ffcd2ddd51&quot; culture=&quot;neutral&quot; /&gt;
      &lt;bindingRedirect oldVersion=&quot;0.0.0.0-4.0.1.1&quot; newVersion=&quot;4.0.1.1&quot; /&gt;
    &lt;/dependentAssembly&gt;
    &lt;dependentAssembly&gt;
      &lt;assemblyIdentity name=&quot;System.ValueTuple&quot; publicKeyToken=&quot;cc7b13ffcd2ddd51&quot; culture=&quot;neutral&quot; /&gt;
      &lt;bindingRedirect oldVersion=&quot;0.0.0.0-4.0.3.0&quot; newVersion=&quot;4.0.3.0&quot; /&gt;
    &lt;/dependentAssembly&gt;
    &lt;dependentAssembly&gt;
      &lt;assemblyIdentity name=&quot;Microsoft.IdentityModel.Clients.ActiveDirectory&quot; publicKeyToken=&quot;31bf3856ad364e35&quot; culture=&quot;neutral&quot; /&gt;
      &lt;bindingRedirect oldVersion=&quot;0.0.0.0-5.2.9.0&quot; newVersion=&quot;5.2.9.0&quot; /&gt;
    &lt;/dependentAssembly&gt;
    &lt;dependentAssembly&gt;
      &lt;assemblyIdentity name=&quot;System.Text.Encodings.Web&quot; publicKeyToken=&quot;cc7b13ffcd2ddd51&quot; culture=&quot;neutral&quot; /&gt;
      &lt;bindingRedirect oldVersion=&quot;0.0.0.0-4.0.5.1&quot; newVersion=&quot;4.0.5.1&quot; /&gt;
    &lt;/dependentAssembly&gt;
    &lt;dependentAssembly&gt;
      &lt;assemblyIdentity name=&quot;Microsoft.Identity.Client&quot; publicKeyToken=&quot;0a613f4dd989e8ae&quot; culture=&quot;neutral&quot; /&gt;
      &lt;bindingRedirect oldVersion=&quot;0.0.0.0-4.35.1.0&quot; newVersion=&quot;4.35.1.0&quot; /&gt;
    &lt;/dependentAssembly&gt;
    &lt;dependentAssembly&gt;
      &lt;assemblyIdentity name=&quot;Azure.Core&quot; publicKeyToken=&quot;92742159e12e44c8&quot; culture=&quot;neutral&quot; /&gt;
      &lt;bindingRedirect oldVersion=&quot;0.0.0.0-1.17.0.0&quot; newVersion=&quot;1.17.0.0&quot; /&gt;
    &lt;/dependentAssembly&gt;
  &lt;/assemblyBinding&gt;
  </code></pre>
  <p><code>packages.config</code></p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;packages&gt;
    &lt;package id=&quot;AddMvc3ToWebForms&quot; version=&quot;0.9.2&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;ASP.NET_MVC_3&quot; version=&quot;1.1.0.0&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;Azure.Core&quot; version=&quot;1.17.0&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;Azure.Identity&quot; version=&quot;1.4.1&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;Azure.Security.KeyVault.Secrets&quot; version=&quot;4.2.0&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;CommonServiceLocator&quot; version=&quot;1.0&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;ExchangeWebServices&quot; version=&quot;1.1&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;jQuery&quot; version=&quot;1.9.1&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;jQuery.BlockUI&quot; version=&quot;2.66&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;jQuery.Validation&quot; version=&quot;1.11.1&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;jQuery.Validation.Unobtrusive&quot; version=&quot;2.0.20710.0&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;jQuery-vsdoc&quot; version=&quot;1.9.1&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;log4net&quot; version=&quot;2.0.0&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;Microsoft.ApplicationInsights&quot; version=&quot;2.2.0&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;Microsoft.ApplicationInsights.Agent.Intercept&quot; version=&quot;2.0.6&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;Microsoft.ApplicationInsights.DependencyCollector&quot; version=&quot;2.2.0&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;Microsoft.ApplicationInsights.PerfCounterCollector&quot; version=&quot;2.2.0&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;Microsoft.ApplicationInsights.Web&quot; version=&quot;2.2.0&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;Microsoft.ApplicationInsights.WindowsServer&quot; version=&quot;2.2.0&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel&quot; version=&quot;2.2.0&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;Microsoft.AspNet.Web.Optimization&quot; version=&quot;1.0.0&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;Microsoft.AspNet.WebApi&quot; version=&quot;4.0.30506.0&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;Microsoft.AspNet.WebApi.Client&quot; version=&quot;4.0.30506.0&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;Microsoft.AspNet.WebApi.Core&quot; version=&quot;4.0.30506.0&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;Microsoft.AspNet.WebApi.WebHost&quot; version=&quot;4.0.30506.0&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;Microsoft.Azure.KeyVault&quot; version=&quot;3.0.5&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;Microsoft.Azure.KeyVault.WebKey&quot; version=&quot;3.0.5&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;Microsoft.Azure.Services.AppAuthentication&quot; version=&quot;1.6.1&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;Microsoft.Bcl&quot; version=&quot;1.1.10&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;Microsoft.Bcl.AsyncInterfaces&quot; version=&quot;1.0.0&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;Microsoft.Bcl.Build&quot; version=&quot;1.0.14&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;Microsoft.Configuration.ConfigurationBuilders.Azure&quot; version=&quot;1.0.2&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;Microsoft.Configuration.ConfigurationBuilders.Base&quot; version=&quot;1.0.1&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;Microsoft.Crm.Sdk&quot; version=&quot;4.0.7333.3021&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;Microsoft.Identity.Client&quot; version=&quot;4.35.1&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;Microsoft.Identity.Client.Extensions.Msal&quot; version=&quot;2.18.4&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;Microsoft.IdentityModel.Clients.ActiveDirectory&quot; version=&quot;5.2.9&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;Microsoft.jQuery.Unobtrusive.Validation&quot; version=&quot;2.0.30116.0&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;Microsoft.mshtml&quot; version=&quot;7.0.3300.1&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;Microsoft.Net.Http&quot; version=&quot;2.2.29&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;Microsoft.NETCore.Platforms&quot; version=&quot;1.1.1&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;Microsoft.NETCore.Targets&quot; version=&quot;1.1.3&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;Microsoft.Rest.ClientRuntime&quot; version=&quot;2.3.23&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;Microsoft.Rest.ClientRuntime.Azure&quot; version=&quot;3.3.19&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;Microsoft.Web.Infrastructure&quot; version=&quot;1.0.0.0&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;Modernizr&quot; version=&quot;2.6.2&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;Newtonsoft.Json&quot; version=&quot;13.0.1&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;Northscale.Caching&quot; version=&quot;2.0.0.0&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;NServiceKit.Common&quot; version=&quot;1.0.31&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;NServiceKit.Redis&quot; version=&quot;1.0.20&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;NServiceKit.Text&quot; version=&quot;1.0.10&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;OctoPack&quot; version=&quot;3.0.71&quot; targetFramework=&quot;net471&quot; developmentDependency=&quot;true&quot; /&gt;
    &lt;package id=&quot;RazorGenerator&quot; version=&quot;2.1.0.0&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;System.Buffers&quot; version=&quot;4.5.1&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;System.Diagnostics.DiagnosticSource&quot; version=&quot;4.6.0&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;System.IO&quot; version=&quot;4.3.0&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;System.Memory&quot; version=&quot;4.5.4&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;System.Memory.Data&quot; version=&quot;1.0.2&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;System.Net.Http&quot; version=&quot;4.3.4&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;System.Numerics.Vectors&quot; version=&quot;4.5.0&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;System.Private.Uri&quot; version=&quot;4.3.2&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;System.Runtime&quot; version=&quot;4.3.0&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;System.Runtime.CompilerServices.Unsafe&quot; version=&quot;4.6.0&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;System.Security.Cryptography.Algorithms&quot; version=&quot;4.3.0&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;System.Security.Cryptography.Encoding&quot; version=&quot;4.3.0&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;System.Security.Cryptography.Primitives&quot; version=&quot;4.3.0&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;System.Security.Cryptography.ProtectedData&quot; version=&quot;4.5.0&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;System.Security.Cryptography.X509Certificates&quot; version=&quot;4.3.0&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;System.Text.Encodings.Web&quot; version=&quot;4.7.2&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;System.Text.Json&quot; version=&quot;4.6.0&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;System.Threading.Tasks.Extensions&quot; version=&quot;4.5.2&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;System.ValueTuple&quot; version=&quot;4.5.0&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;toastr&quot; version=&quot;2.0.1&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;UI.for.Asp.Net.Ajax&quot; version=&quot;2017.3.913&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;Unity&quot; version=&quot;2.1.505.2&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;Unity.Interception&quot; version=&quot;2.1.505.2&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;Unity.WebAPI&quot; version=&quot;0.10&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;WebActivator&quot; version=&quot;1.3.2&quot; targetFramework=&quot;net471&quot; /&gt;
    &lt;package id=&quot;WebGrease&quot; version=&quot;1.1.0&quot; targetFramework=&quot;net471&quot; /&gt;
  &lt;/packages&gt;
  </code></pre>