Can someone explain why I'm encountering the error (Exception from HRESULT: 0x80020006 (DISP_E_UNKNOWNNAME)) when trying to call a javascript function in a WPF application (.Net 4)?
The application hosts a browser control and utilizes local html files, for example:
C:\Users\XXXX\AppData\Roaming\XXXX\Books\XXXX_revision_1_1\html\1\med-9780198569244-chapter-4
Within this file, there is a javascript include called 'script/scripts.js'
Is it feasible to use C# to trigger a javascript function through the InvokeScript method on the browser control when the URL points to a local file?