| Author |
Message |
icube
Joined: 24 Oct 2012 Posts: 2 Location: Singapore
|
Posted: Fri Oct 26, 2012 8:54 am Post subject: Profiling JSON.net |
|
|
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! |
|
| Back to top |
|
 |
james.billings
Joined: 16 Jun 2010 Posts: 844 Location: My desk.
|
Posted: Mon Oct 29, 2012 1:20 pm Post subject: |
|
|
We've seen this previously- it's due to some tighter security that's incompatible with line level timings.
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. |
|
| Back to top |
|
 |
|
|
All times are GMT + 1 Hour
|
| Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group