Comments
3 comments
-
Using ILSpy, I found this to be the constructor of HtmlAgilityPack that crashes:
public HtmlDocument() { this._documentnode = this.CreateNode(HtmlNodeType.Document, 0); this.OptionDefaultStreamEncoding = Encoding.Default; }
I see no special behaviour here.
Would be interesting to see the "instrumented" code of this constructor after it goes through ANTS Profiler. -
Hi,
Please try adding HtmlAgilityPack.HtmlDocument to the line-level timings block list. For more information, see: http://documentation.red-gate.com/display/APP9/Profiling+SecurityTransparent+and+partially-trusted+assemblies#ProfilingSecurityTransparentandpartially-trustedassemblies-block-list
Dom. -
Thanks a lot, that did the trick.
I've added<assemblyName>HtmlAgilityPack</assemblyName>
to the file"C:UsersukeimAppDataLocalRed GateANTS Performance Profiler 9LineLevelBlacklist.xml"
After that, the profiling succeeds without any errors, even in line level mode.
Add comment
Please sign in to leave a comment.
An error occurs when running inside ANTS Performance Profiler with highest profiling mode (line-level timings):
The stack trace is:
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)