Json.NET + VerificationException Operation could destabilize the runtime

后端 未结 3 1563
清歌不尽
清歌不尽 2021-01-17 12:30

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 runt

相关标签:
3条回答
  • 2021-01-17 13:15

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

    Try to add Newtonsoft.dll on IntelliTrace ignore list:

    • Tools -> Options -> IntelliTrace -> Modules
    • Add -> Newtonsoft.
    0 讨论(0)
  • 2021-01-17 13:26

    This bug is fixed in the latest version of Json.NET - http://james.newtonking.com/archive/2012/01/23/json-net-4-0-release-6-serialization-performance.aspx

    0 讨论(0)
  • 2021-01-17 13:33

    This is a known issue.

    You should be able to fix this by removing all references to the JSON .NET library and adding them again to the projects.

    See also:

    http://json.codeplex.com/workitem/20624

    JSON.Net throwing System.Security.VerificationException: Operation could destabilize the runtime

    0 讨论(0)
提交回复
热议问题