登录 google 加上 ID 错误 "could not load file or assembly 'System.Net.Http.Primitives, Version=1.5.0.0"

Sign in with google plus ID error "could not load file or assembly 'System.Net.Http.Primitives, Version=1.5.0.0"

我正在我的网站中使用 google-plus 实现登录。但是登录后出现这个错误,

Could not load file or assembly 'System.Net.Http.Primitives, Version=1.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) Please try again in several minutes.

我已经尝试了此处提到的每个步骤:

最后,我通过将此添加到 machine.config 解决了这个问题:

<runtime>
  <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
    <dependentAssembly>
      <assemblyIdentity name="System.Net.Http.Primitives" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>
      <bindingRedirect oldVersion="0.0.0.0-4.0.10.0" newVersion="4.0.10.0"/>
    </dependentAssembly>
  </assemblyBinding>
</runtime>

问题: 我不想 machine.config 改变所以我想把它移到 web.config 在我网站的根文件夹中。

还有其他解决办法吗?

终于我找到了解决这个问题的方法.. 从标签中删除 xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0" 解决了我的问题。我不知道该操作的副作用是什么,有人可以告诉我吗??