user155575
user155575

Reputation:

The message filter indicated that the application is busy, while using multiple webbrowsers controls at a time

Thanks for your time, i am creating an application which will take 5 URL's from database and then navigate each in 5 browser-controls respectively. This activity is done in "background worker control's do work function". On first time load of this window form, everything goes fine, i am having a function of leave this form (which will go back to main form). when i again navigate to this form, i am having following exception on loading document in web-browser control.

"The message filter indicated that the application is busy. (Exception from HRESULT: 0x8001010A (RPC_E_SERVERCALL_RETRYLATER))"

Upvotes: 2

Views: 2328

Answers (2)

Sheng Jiang 蒋晟
Sheng Jiang 蒋晟

Reputation: 15261

From http://msdn.microsoft.com/en-us/library/system.componentmodel.backgroundworker.dowork.aspx

You must be careful not to manipulate any user-interface objects in your DoWork event handler. Instead, communicate to the user interface through the BackgroundWorker events.

Upvotes: 1

user155575
user155575

Reputation:

I was opening each document in each web-browser-control in the backgroundworker_DoWork function, what solved my problem is by loading data from database in backgroundWorker_DoWork and loading documents in each web-browser-control in backgroundWorker_Completed function.

Upvotes: 0

Related Questions