Profiling JSON.net
icube
Posts: 2
Hi,
I have a problem profiling my app which uses the JSON.net library. http://json.codeplex.com/. It reports the following exception: VerificationException: Operation could destabilize the runtime.
And yes, my app runs smoothly when it is not profiling. Thanks!
I have a problem profiling my app which uses the JSON.net library. http://json.codeplex.com/. It reports the following exception: VerificationException: Operation could destabilize the runtime.
And yes, my app runs smoothly when it is not profiling. Thanks!
Comments
You can get around it by changing some of the Json source:
- find JsonWriter.cs
- comment out "[assembly:System.Security.SecurityTransparent]"
- expand the "properties" folder
- comment out "[assembly:AllowPartiallyTrustedCallers]" in the #if !SILVERLIGHT region
- rebuild your solution
With those changes, it should hopefully work. You can uncomment the lines again when you release your app if you wish.
Redgate Software