Json.NET + VerificationException操作可能破坏运行 [英] Json.NET + VerificationException Operation could destabilize the runtime

查看:113
本文介绍了Json.NET + VerificationException操作可能破坏运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到操作可能destablize运行时异常。我瞪大眼睛了不少,看起来像是例外就是在运行时装载冲突的组件做。
因此,这里有两件事情

I am getting the "Operation could destablize the runtime exception". I goggled quite a bit, looks like exception has to do with conflicting assemblies being loaded at runtime. So, here are couple of things


  1. 相同的源代码在我的同事的机器。

  2. 我看了看,并寻找每一个参考NewtonSoft.Json.dll,似乎像它从同一个程序集的到来。 (我想,因为它是在其他人的机器的工作,这将不会是一个问题)。

  3. 我使用的乌鸦,它引用NewtonSoft,但其不被上只在服务器端使用客户机/ Silverlight的一面。另外要兼容的,我引用到相同的版本Newtonsoft那乌鸦被引用到。

现在,这个问题可能是一个我安装在的影响该机器。某些运行时/ SP安装等
是有办法调试/搞清楚这里发生了什么。我看了看,并寻找NewtonSoft.dll当应用程序运行,并在临时asp.net文件中获取正确的版本。 ?

Now, the problem might be something I installed in the machine that's affecting this. some runtime / SP install etc. Is there a way to debug / figure out what's happening here. I looked and searched for NewtonSoft.dll when the app runs and it gets right version in the temporary asp.net files. ?

任何帮助,可以极大的赞赏。我并不想通过我的安装运行。

Any help could be greatly appreciated. I don't want to go through installing my runtime.

推荐答案

可能会出现此异常时的Visual Studio Ultimate和激活的IntelliTrace

This exception can occur when you have Visual Studio Ultimate and IntelliTrace activated.

尝试添加Newtonsoft.dll上的IntelliTrace忽略列表:

Try to add Newtonsoft.dll on IntelliTrace ignore list:


  • 工具 - >选项 - >智能跟踪 - >模块

  • 添加 - > Newtonsoft

  • Tools -> Options -> IntelliTrace -> Modules
  • Add -> Newtonsoft.

这篇关于Json.NET + VerificationException操作可能破坏运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆