Fiddler Script now support C#. I'm try to use HtmlAgilityPack in Fiddler Script by " using HtmlAgilityPack; " . See 1.png;
It shows an error . See 2.png;
I'm try to change version of HtmlAgilityPack but it still same error.
Could some one help me how to fix this error? Thanks so much.
4 Answers, 1 is accepted
The verson of Fiddler is V5.0.20194.41348.
I alread reference HtmlAgilityPack.dll in options Scripting .
See 1.png.
Hi Chen,
What is the translation of the error message? Make sure that you are using HtmlAgilityPack compatible with the .NET Framework version used by Fiddler (Fiddler have .NET Framework 4, 4.5, and 4.6.1 flavors).
Regards,
Boby
Progress Telerik
Thanks so much for reply. The translation of the error message is
Could not load file or assembly "HtmlAgilityPack, Version=1.11.17.0,Culture=neutral,PublickeyToken=bd319b19eaf3b43a" or one of its dependencies.system cannot find file specified.
The code i use in Fiddler Script is
HtmlAgilityPack.HtmlDocument doc = new HtmlAgilityPack.HtmlDocument();
and I download HtmlAgilityPack at this url https://www.nuget.org/packages/HtmlAgilityPack/
Maybe you can try download HtmlAgilityPack and reference in Fiddler see does it work?
Thank again for reply.
Best regards.
Hi Chen,
You are right, I managed to reproduce the issue, but I am not sure what it causing the issue as of now.
What I've noticed is that using JScript.NET seemingly works around the problem. I logged issue on your behalf, which you can follow to get notifications about potential fixes:
Regards,
Boby
Progress Telerik