Problem hosting WebBrowser control

Posted on 2003-03-02
Medium Priority
Last Modified: 2010-10-05

I'm having a bit of trouble with the web browser control. I implement IDocHostUIHandler and IOleClientSite and set the an instance of the implementing object as the client site for the web browser.

Everything worked fine when the application was a single window containing a web browser, menus etc; however, once I put the web browser control into a tab pane it looses the ability to navigate after a point.

Just after creation of the browser control it is possible to navigate to a web site. If any other windows come up the result is a COMException with the "Requested resource is in use" message (stack trace below).

I had heard something about this kind of problem but hadn't seen a solution, and also heard that it was likely to be possible with version 1.1 of the framework. Having tried it with both the 1.0 and 1.1 frameworks, I was wondering if anyone had encountered and fixed similar problems.

Thanks in advance

Unhandled Exception: System.Runtime.InteropServices.COMException (0x800700AA): The requested resource is in use.
   at SHDocVw.IWebBrowser2.Navigate(String URL, Object& Flags, Object& TargetFrameName, Object& PostData, Object& Headers)
   at AxSHDocVw.AxWebBrowser.Navigate(String uRL, Object& flags, Object& targetFrameName, Object& postData, Object& headers)
Question by:rwood_uk
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

Author Comment

ID: 8051913
Have discovered what the problem was, I was setting a parent component of the tab control containing the web browser to have Enabled = false whilst a dialog was active, then attempting to Navigate() before the Enabled flag had been set to true again. For some reason this doesn't work.

Accepted Solution

SpideyMod earned 0 total points
ID: 8052619
PAQ'd and points refunded.

Community Support Moderator @Experts Exchange

Featured Post


Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

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.
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

770 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