HighTechTalks DotNet Forums  

DocumentComplete event failed to fire in different version ofSHDOCVW.DLL

Dotnet Framework (CLR) microsoft.public.dotnet.framework.clr


Discuss DocumentComplete event failed to fire in different version ofSHDOCVW.DLL in the Dotnet Framework (CLR) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
prowyh
 
Posts: n/a

Default DocumentComplete event failed to fire in different version ofSHDOCVW.DLL - 12-04-2007 , 11:51 AM






Hi all,

I wrote a Windows Form application that hosts WebBrowser control, and
I want to handle the DocumentComplete event in C# code. It works fine
on my development computer, but the WebBrowser control failed to fire
the DocumentComplete event while run on another computer.

The SHDOCVW.DLL on my computer has the version: 6.0.3790.3959, and the
SHDOCVW.DLL on another computer has the version: 6.0.3790.4134.

My code snippet:

axWebBrowser.DocumentComplete += new
AxSHDocVw.DWebBrowserEvents2_DocumentCompleteEvent Handler(this.axWebBrowser_DocumentComplete);
object o = null;
axWebBrowser.Navigate2(ref __url, ref o, ref o, ref o, ref o);
//.....

private void axWebBrowser_DocumentComplete(object sender,
AxSHDocVw.DWebBrowserEvents2_DocumentCompleteEvent e)
{
//.......
}

On another computer, method axWebBrowser_DocumentComplete() not run at
all!

Is this problem related to the version of SHDOCVW.DLL? If so, how to
tackle the problem? since SHDOCVW.DLL can not be redistributed.

Any hints be appreciated.

Reply With Quote
  #2  
Old   
Sheng Jiang[MVP]
 
Posts: n/a

Default Re: DocumentComplete event failed to fire in different version of SHDOCVW.DLL - 12-05-2007 , 01:50 PM






use remote debugging to find out if there is any error
I have this issue twice, once for mshtml.dll redistribution, once for a url
format exception that is thrown out in the unmanaged DocumentComplete event
and catched by .Net frameword itself.

--
Sheng Jiang
Microsoft MVP in VC++
"prowyh" <prowyh (AT) gmail (DOT) com> wrote

Quote:
Hi all,

I wrote a Windows Form application that hosts WebBrowser control, and
I want to handle the DocumentComplete event in C# code. It works fine
on my development computer, but the WebBrowser control failed to fire
the DocumentComplete event while run on another computer.

The SHDOCVW.DLL on my computer has the version: 6.0.3790.3959, and the
SHDOCVW.DLL on another computer has the version: 6.0.3790.4134.

My code snippet:

axWebBrowser.DocumentComplete += new

AxSHDocVw.DWebBrowserEvents2_DocumentCompleteEvent Handler(this.axWebBrowser_
DocumentComplete);
Quote:
object o = null;
axWebBrowser.Navigate2(ref __url, ref o, ref o, ref o, ref o);
//.....

private void axWebBrowser_DocumentComplete(object sender,
AxSHDocVw.DWebBrowserEvents2_DocumentCompleteEvent e)
{
//.......
}

On another computer, method axWebBrowser_DocumentComplete() not run at
all!

Is this problem related to the version of SHDOCVW.DLL? If so, how to
tackle the problem? since SHDOCVW.DLL can not be redistributed.

Any hints be appreciated.



Reply With Quote
  #3  
Old   
Lou Zher
 
Posts: n/a

Default Re: DocumentComplete event failed to fire in different version of SHDOCVW.DLL - 12-05-2007 , 02:30 PM



Probably better to ask microsoft.public.windows.inetexplorer.ie5.programm ing
-LZ

"prowyh" <prowyh (AT) gmail (DOT) com> wrote

Quote:
Hi all,

I wrote a Windows Form application that hosts WebBrowser control, and
I want to handle the DocumentComplete event in C# code. It works fine
on my development computer, but the WebBrowser control failed to fire
the DocumentComplete event while run on another computer.

The SHDOCVW.DLL on my computer has the version: 6.0.3790.3959, and the
SHDOCVW.DLL on another computer has the version: 6.0.3790.4134.

My code snippet:

axWebBrowser.DocumentComplete += new
AxSHDocVw.DWebBrowserEvents2_DocumentCompleteEvent Handler(this.axWebBrowser_DocumentComplete);
object o = null;
axWebBrowser.Navigate2(ref __url, ref o, ref o, ref o, ref o);
//.....

private void axWebBrowser_DocumentComplete(object sender,
AxSHDocVw.DWebBrowserEvents2_DocumentCompleteEvent e)
{
//.......
}

On another computer, method axWebBrowser_DocumentComplete() not run at
all!

Is this problem related to the version of SHDOCVW.DLL? If so, how to
tackle the problem? since SHDOCVW.DLL can not be redistributed.

Any hints be appreciated.



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.