Hi,
I'm trying to get familiar using code blocks and external dll's. Right now, I wish to create a BO which allows me to parse a HTML page, and retrieve all tables I'm able to identify as a collection.
To do this, I'm using C# and the library HtmlAgilityPack. Writing code isn't the hard part, but adding the .dll file seems to be. On my BO's Initialise page, I added the path to the .dll file as en external reference. (C:\Users\USERNAME\Desktop\Net20\HtmlAgilityPack.dll)
However, I get the following error message when I try to use the library.
"Internal : Could not execute code stage because exception thrown by code stage: Could not load file or assembly 'HtmlAgilityPack, Version=1.4.6.0, Culture=neutral, PublicKeyToken=bd319b19eaf3b43a' or one of its dependencies. The system cannot find the file specified."
I looked at the Knowledge Base, and it recommends you to either add the .dll on BP installation directory (which I'm somehow not allowed to), Win/SYSTEM32 directory, or add the folder in the PATH environment variable. I'm somehow not allowed to do the first two methods. Moreover, I've added the folder (C:\Users\USERNAME\Desktop\Net20\) in the PATH environment variable, but I still get the same error message.
I have .NET framework installed (4.6.1, 3.5, 3.0, 2.0), so all version of this HtmlAgilityPack should be supported. Net20 version should support .NET Framework 2.0 and 3.5. I've tried almost all of them. I also restart Blue Prism / run it as admin everytime I make changes to the dll file location.
Has anyone experienced something similar? How can I resolve the exception?