I am able to invoke the method and set up the html file. The issue I'm having is that inside the html file I am using the DOMParser object in a javascript function that I'm calling in C#. It is not defined due to not using an actual browser.
Adding this line to the html file fixes the problem:
<meta http-equiv="X-UA-Compatible" content="IE=edge">
The problem is I want to run the winforms application on an old Virtual Machine that doesn't contain Microsoft Edge..
Is there a way I can manually load the DOMParser object into my html file / javascript funtion?