"Operation could destabilize the runtime"

Uwe KeimUwe Keim Posts: 47 Bronze 3
edited April 10, 2015 10:58AM in ANTS Performance Profiler 9
Using the latest ANTS Performance Profiler together with this small console program:
namespace AntsHtmlAgilityPackTests
{
    using HtmlAgilityPack; // Included via NuGet package.

    internal static class Program
    {
        private static void Main()
        {
            new HtmlDocument();
        }
    }
}
An error occurs when running inside ANTS Performance Profiler with highest profiling mode (line-level timings):
System.Security.VerificationException: Operation could destabilize the runtime
The stack trace is:
at HtmlAgilityPack.HtmlDocument..ctor() in D:SVN_CHECKOUThtmlagilitypackTrunkHtmlAgilityPackHtmlDocument.cs:Line 26.
at AntsHtmlAgilityPackTests.Program.Main() in c:UsersukeimTestsMain.cs:Line 12.
When running in a lower profiling mode ("orange", method-level timings), no error occurs.

My question:

How can I work-around this issue?

(I need to have line-level profiler results so switching to a lower mode is not an option)

Comments

Sign In or Register to comment.