Solved

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

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How do I hide MVVM menu items in WPF/XAML? 1 54
Set custom font WPF 2 25
Converting PHP triple des decrypt to c# 9 166
C# LINQ query question 11 31
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

734 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