以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  [求助] 有个Newtonsoft.Json 报错帮看下  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=152489)

--  作者:81538475
--  发布时间:2020/7/13 14:58:00
--  [求助] 有个Newtonsoft.Json 报错帮看下
大部分机器事没问题的,有个别机器报错。同样的客户端,
Could not load file or assembly \'Newtonsoft.Json, Version=10.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed\' or one of its dependencies. The located assembly\'s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
[此贴子已经被作者于2020/7/13 15:00:47编辑过]

--  作者:有点蓝
--  发布时间:2020/7/13 15:00:00
--  

--  作者:81538475
--  发布时间:2020/7/13 15:02:00
--  
恩。这个加过了,大部分机器事好了。有个别报错。
<dependentAssembly>
        <assemblyIdentity name="Newtonsoft.Json"
          publicKeyToken="30ad4fe6b2a6aeed"
          culture="neutral" />
        <bindingRedirect oldVersion="10.0.0.0" newVersion="12.0.0.0" />
      </dependentAssembly>

[此贴子已经被作者于2020/7/13 15:03:10编辑过]

--  作者:有点蓝
--  发布时间:2020/7/13 15:11:00
--  
应该是dll的版本还是有问题。把没有问题的电脑的程序复制过来覆盖掉
--  作者:81538475
--  发布时间:2020/7/13 15:39:00
--  
目前就是复制过去的客户端也报错。有可能是操作系统的问题吗
--  作者:有点蓝
--  发布时间:2020/7/13 15:43:00
--  
复制到另外一个目录试试。不要放到共享,U盘,云盘里