Solved

webBrowser Control resource problem

Posted on 2010-09-16
2
1,577 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Do you come here a lot? Are you lazy like me and don't want to go through the "trouble" of having to click your Dock's Safari icon and then having to click your Experts Exchange Favorites bookmark to get here? Well then this article is for you.
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This Micro Tutorial will demonstrate how to add subdomains to your content reports. This can be very importing in having a site with multiple subdomains.
This Micro Tutorial will demonstrate how nuggets on the Web are formatted by using Chrome Developer Tools. These tools would not only view the site's CSS but it can also modify it and save the CSS to use on your own site.

708 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

16 Experts available now in Live!

Get 1:1 Help Now