Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>As explained by CodeBlock, this seems to be related by the installation state of <code>Microsoft.mshtml.dll</code></p> <p>We've got customers where the <code>Microsoft.mshtml.dll</code> is not present in GAC (nor in computer), and then the <code>WebBrowser</code> component never fires any event.</p> <p>By using Reflector in the <code>WebBrowser</code> class, the <code>DocumentComplete</code> event is raised by a subclass named <code>WebBrowserEvent</code>, which implement a private interface <code>DWebBrowserEvents2</code>.</p> <p>This interface is a <code>ComImport</code> of <code>{34A715A0-6587-11D0-924A-0020AFC7AC4D}</code>, which, I suppose, is related to Microsoft.mshtml.dll.</p> <p>So our solution was to install <a href="http://www.microsoft.com/downloads/details.aspx?familyid=3C9A983A-AC14-4125-8BA0-D36D67E0F4AD&amp;displaylang=en" rel="noreferrer" title="Office 2003 Update: Redistributable Primary Interop Assemblies">the Office 2003 Redistributable Primary Interop Assemblies</a>, which install the DLL on Program Files then register it on the GAC.</p> <p>Note : Don't pay attention to the .NET Framework 1.1 required or office required, it just copies some dlls.</p> <p>Note 2 : The <a href="http://www.microsoft.com/downloads/details.aspx?familyid=59DAEBAA-BED4-4282-A28C-B864D8BFA513&amp;displaylang=en" rel="noreferrer" title="2007 Microsoft Office System Update: Redistributable Primary Interop Assemblies">2007 package</a> seems to include the same dll.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload