admin管理员组

文章数量:1644015

 

『System.IO.FileLoadException:“未能加载文件或程序集“Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed”或它的某一个依赖项。找到的程序集清单定义与程序集引用不匹配。 (异常来自 HRESULT:0x80131040)”』

C#遇到以上问题可在 app.config 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>

本文标签: 加载文件程序SystemIO