Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


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

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

Independent Software Vendors: 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

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…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Screencast - Getting to Know the Pipeline
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses

577 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