Ran into a new one. I *think* I have used CLR stuff with webbatch before without an issue so assuming this is a bit more specific to HtmlAgilityPack. The error appears to be related to innerText, which makes me think it is related to the use of HttpUtility.HtmlDecode() under System.Web. My understanding such errors are related to the app.config file. Have done a lot of reading but still not clear what is needed in the config file. Assuming that is the issue. I have listed one of my MANY attempts with the config file. Suggestions?
Jim
Error#: 1261
Line: If cNode > 0 Then title = StrTrim(cNode.InnerText)
Error Text: COM/CLR: Exception
Additional Info: COM/CLR Exception:
System.Configuration
Configuration system failed to initialize
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="HtmlAgilityPack.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
requirePermission="false" />
</sectionGroup>
</configSections>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=4.6"/>
</startup>
<system.web>
<httpRuntime targetFramework="4.6"/>
</system.web>
<system.data>
</system.data>
</configuration>