mark下坑爹的配置

 

 

1.删除bin目录下的Newtonsoft.Json.dll
2.V4版本dll 复制到Bin/Newtonsoft.Json.4/Newtonsoft.Json.dll
  V11版本dll 复制到Bin/Newtonsoft.Json.11/Newtonsoft.Json.dll

3.web.config 做如下配置

<dependentAssembly>  
      <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="" />  
      <codeBase version="4.0.0.0" href="Bin/Newtonsoft.Json.4/Newtonsoft.Json.dll" />  
    </dependentAssembly>  
    <dependentAssembly>  
      <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" />  
      <codeBase  version="11.0.0.0" href="Bin/Newtonsoft.Json.11/Newtonsoft.Json.dll" />  
      <bindingRedirect oldVersion="0.0.0.0-11.0.0.0" newVersion="11.0.0.0" />
    </dependentAssembly>