Solved

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

Posted on 2003-11-12
4
1,012 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
  • 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

706 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now