Red Gate forums :: View topic - Profiling ASP.NET: Operation could destabilize the runtime
Return to www.red-gate.com RSS Feed Available

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

Profiling ASP.NET: Operation could destabilize the runtime

Search in ANTS Performance Profiler 6 forum
Post new topic   Reply to topic
Jump to:  
Author Message
jaap.q42



Joined: 17 Dec 2009
Posts: 26

PostPosted: Wed Aug 08, 2012 10:53 am    Post subject: Profiling ASP.NET: Operation could destabilize the runtime Reply with quote

I have a depency on Common.Logging.2.1.0.0 which wasn't release so I built it myself from github.

I'm getting the VerificationException Operation could destabilize the runtime. exception which I've already found on these forums.

Running IIS7 on Windows 7 .NET 4, using ANTS Performance Profiler 6.3 Prof.

I've been able to do this:
* <system.web><trust level="Full"/>
* got profiling working with method timings only
* Altered The Common.Logging dll (since I already built it myself) to include [assembly: System.Security.SecurityRules(System.Security.SecurityRuleSet.Level1)] instead of [assembly: SecurityTransparent]

The line which was reported by the exception seems stange:
Line 86: public static readonly string COMMON_LOGGING_SECTION = "common/logging";
although ANTS might be doing things there to make the line numbers all weird.

Related to:
http://www.red-gate.com/messageboard/viewtopic.php?t=11404
Back to top
View user's profile Send private message
jaap.q42



Joined: 17 Dec 2009
Posts: 26

PostPosted: Wed Aug 08, 2012 11:00 am    Post subject: Reply with quote

I found a [assembly: AllowPartiallyTrustedCallersAttribute()] in the code.
However,

DELETING the PDB files worked, obviously, because I only want methods with source, so when I removed the pdb file, ANTS has no way to find the source!
Back to top
View user's profile Send private message
Chris.Allen



Joined: 12 Mar 2009
Posts: 546

PostPosted: Wed Aug 08, 2012 3:22 pm    Post subject: Reply with quote

This is a well known issue but I believe the very latest update to ANTS improves the situation, bypasssing assemblies thus marked (without needing to delete any PDBs). Please can you upgrade and retry?
Back to top
View user's profile Send private message
jaap.q42



Joined: 17 Dec 2009
Posts: 26

PostPosted: Wed Aug 08, 2012 4:46 pm    Post subject: Reply with quote

Unfortunately upgrading is not an option because we didn't renew our license. I consider the issue closed since the fix is not to include pdb's which is just fine, I don't need them anyway...
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