Exception when rising event to javascript from the IE Hosted UserControl

Joined
Jun 28, 2005
Messages
1
Reaction score
0
I have a UserControl hosted in Internet Explorer. I create a worker thread to do some task and want to fire an event when the worker thread finish working.

The event works fine, javascript can caugth it, when it fired from the main thread or from the code in external event handler such as Button clicked event.

But when fired from the worker thread, the "System.Reflection.TargetExceltion : Object does not match target type" has been thrown. I can't do the task on the main thread because it's IO things, that will hang the control's container (IE).

Any suggestion? how can I fire the event on the worker thread?
Thank you in advance.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top