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

爷,独闯天下 提交于 2019-12-11 12:51:19

问题


I have a web application which uses JSON.Net to write out an array of data from a .Net Array().

When run in the VS2010 environment, it works fine.

When run under IIS6 and .Net 3.5, it works fine.

When run under IIS7 or 7.5 and .Net 3.5 when .Net 4.0 is installed (but the app pool and site is set to use v2 runtime), it fails with the exception 'System.Security.VerificationException: Operation could destabilize the runtime.'

I do not have access to an IIS7 (or 7.5) system without .Net 4.,0 so I cannot try that case.

Can anyone shed any light on this?

来源:https://stackoverflow.com/questions/3554622/json-net-throwing-system-security-verificationexception-operation-could-destabi

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!