Profiling ASP.NET: Operation could destabilize the runtime

Code profiling for .NET Developers

Moderators: Luke Jefferson, StephenC, Alex.Davies, AndrewH, melvyn.harbour, Laura Morley

Profiling ASP.NET: Operation could destabilize the runtime

Postby jaap.q42 » Wed Aug 08, 2012 10:53 am

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/vi ... hp?t=11404
jaap.q42
 
Posts: 26
Joined: Thu Dec 17, 2009 3:21 pm

Postby jaap.q42 » Wed Aug 08, 2012 11:00 am

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!
jaap.q42
 
Posts: 26
Joined: Thu Dec 17, 2009 3:21 pm

Postby Chris.Allen » Wed Aug 08, 2012 3:22 pm

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?
Chris.Allen
 
Posts: 594
Joined: Thu Mar 12, 2009 4:17 pm

Postby jaap.q42 » Wed Aug 08, 2012 4:46 pm

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...
jaap.q42
 
Posts: 26
Joined: Thu Dec 17, 2009 3:21 pm


Return to ANTS Performance Profiler 6

Who is online

Users browsing this forum: No registered users and 0 guests