I have a requirement to parse an Html table from a field into Json. I want to assign the table content separately to another fields.
var doc = new HtmlDocument();
doc.LoadHtml(html);
var tableNode = doc.DocumentNode.SelectSingleNode(///table/);
if (tableNode != null)
{
var rows = tableNode.SelectNodes(/.//tr/);
}
I don't get any error during compilation. But once the assembly is update, and plugin executes, I am getting following error.
System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: Could not load file or assembly 'HtmlAgilityPack, Version=1.11.57.0, Culture=neutral, PublicKeyToken=bd319b19eaf3b43a' or one of its dependencies. The system cannot find the file specified. (Fault Detail is equal to Exception details:
ErrorCode: 0x80040265
Message: Could not load file or assembly 'HtmlAgilityPack, Version=1.11.57.0, Culture=neutral, PublicKeyToken=bd319b19eaf3b43a' or one of its dependencies. The system cannot find the file specified.
TimeStamp: 2024-01-29T10:41:40.1669805Z
OriginalException: PluginExecution
ExceptionSource: PluginExecution
I have checked after the code build, the htmlagility dll is present in the bin folder. I am unable to understand the issue, please help me