How can I solve this error?
“The requested resource is in use. (Exception from HRESULT: 0x800700AA)”.
This appears while navigating to a different website using the WebBrowser control in C# .NET. Why?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The WebBrowser control is considered “in use” if either a navigation action is currently being processed, or any blocking dialog from the control is currently open (including context menu, Javascript alerts, NTLM login dialog, etc.). You can use the
WebBrowser.IsBusyproperty to detect these states.If due to a currently incomplete navigation action, you could try to stop the current navigation (if you indeed want to stop when the page is not completed loaded) or add the new navigation to a request queue and use a timer to wait until
WebBrowser.IsBusyreturns false.If instead the busy state is due to one or more open blocking dialogs, you could do the same wait technique and perhaps
Messagebox.Show()the user a message that pending navigation is delayed due to an open dialog window.