Solved

webBrowser Control resource problem

Posted on 2010-09-16
2
1,622 Views
Last Modified: 2013-12-08
I am just puzzled regarding this problem in using the webBrowser control since I don't see any reason why this could occur. Anyway, here it goes.

There are times that I receive this exception error:

System.Runtime.InteropServices.COMException (0x800700AA): The requested resource is in use. (Exception from HRESULT: 0x800700AA)


Any help on this matter will be greatly appreciated.

Thank in advance!
0
Comment
Question by:Dhanasekaran Sengodan
2 Comments
 
LVL 8

Accepted Solution

by:
cubaman_24 earned 500 total points
ID: 33699716
Well, without more info is hard to know.. That's ERROR_BUSY usually happens when IE is doing something else, e.g. displaying a window.alert message box.
I haven't looked into a solid answer for you, but make sure the application your webbrowser control is operating in is running in a static thread (this means having the [STATThread] attribute on your Main) and also make sure you are only accessing the webbrowser control from the actual UI thread queue - so if you are multi-threading (or using a timer or anything like that) you will need to use the .Invoke() method to insert your requests into the UI queue.
Best regards
0
 
LVL 14

Author Closing Comment

by:Dhanasekaran Sengodan
ID: 33699849
Excellent
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
SSL stands for “Secure Sockets Layer” and an SSL certificate is a critical component to keeping your website safe, secured, and compliant. Any ecommerce website must have an SSL certificate to ensure the safe handling of sensitive information like…
Shows how to create a shortcut to site-search Experts Exchange using Google in the Chrome browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch the Search Engine Menu: In chrome, via you…
How to create a custom search shortcut to site-search Experts Exchange using Google in the Firefox browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch your Bookmark Menu: Press 'Ctrl +…

831 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