Red Gate forums :: View topic - Application was stopped if i run it from redgate
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
ANTS Performance Profiler 7
ANTS Performance Profiler 7 forum

Application was stopped if i run it from redgate

Search in ANTS Performance Profiler 7 forum
Post new topic   Reply to topic
Jump to:  
Author Message
hyang



Joined: 16 Aug 2012
Posts: 11

PostPosted: Wed Mar 20, 2013 8:19 pm    Post subject: Application was stopped if i run it from redgate Reply with quote

hi,
I got a problem with start application by using redgate performance profiler.

The application self works without problem

but when i start it from redgate, it always says ".... has stopped working"

I noticed that. the exception comes from line of

JsonConvert.DeserializeObject(value, type, (JsonSerializerSettings)null);

The exception is:
{"Operation could destabilize the runtime."} System.Exception {System.Security.VerificationException}

I rechecked it, it works without any problem if I didn't run redgate.
any idea why redgate will stop applicaiton for this line? and what's solution for it? thanks a lot
Back to top
View user's profile Send private message
james.billings



Joined: 16 Jun 2010
Posts: 1121
Location: My desk.

PostPosted: Thu Mar 21, 2013 7:16 pm    Post subject: Reply with quote

Thanks for your post.

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
View user's profile Send private message
Display posts from previous:   
Reply to topic 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