Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

未能加载文件或程序集Newtonsoft.Json, Version=4.5.0.0 #12

Open
SilenceHVK opened this issue Nov 7, 2017 · 0 comments
Open

Comments

@SilenceHVK
Copy link
Owner

  1. 打开 程序管理器控制台 输入 PM> install-package newtonsoft.json
  2. 查看bin文件中是否有 newtonsoft.json.dll文件
  3. 在Web.config 中添加
<runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
      </dependentAssembly>
    </assemblyBinding>
  </runtime>
  1. 重新编译后运行
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant