Solved

AxSHDocVw.AxWebBrowser error - "queryinterface for interface shdocvw.iwebbrowser2 failed"

Posted on 2003-11-12
4
1,020 Views
Last Modified: 2009-12-16
Hi,

I have a vb.net application using webbrower control.  
I am using the following command to display html file in this browser (AxSHDocVw.AxWebBrowser)

browser.Navigate("searching.html")

I works fine, but if the application is idle for some time and when it tries to call this line again it gives an error

"queryinterface for interface shdocvw.iwebbrowser2 failed"

Please help

Thanks

0
Comment
Question by:inetworks
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 3

Expert Comment

by:Sijin
ID: 9738698
Is the browser object going out of scope?

Can you provide the code for the method where you call this line? Make sure browser is not a local variable and is a class level variable.
0
 
LVL 1

Accepted Solution

by:
inetworks earned 0 total points
ID: 9738925
Thank you. The problem was due to a thread and it is solved now
I Put the thread inside a class and raised an event when thread is completed
to navigate a page to browser control.

Thanks
0
 
LVL 3

Expert Comment

by:Sijin
ID: 9739510
Good. :)
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question