Using threads and event handlers within a WCF Web Service

Posted by user368984 on Stack Overflow See other posts from Stack Overflow or by user368984
Published on 2010-06-17T07:20:25Z Indexed on 2010/06/17 7:23 UTC
Read the original article Hit count: 240

Filed under:
|
|
|

While making a WCF Web Service, I came across a problem while using a method with a webbrowser control. The method starts a thread and uses a webbrowser control to fill in some forms and click further, waiting for a event handler to fire and return a answer I need. The method is tested and works within its own enviroment, but used in a WCF Web Service enviroment, the event handlers just won't fire. A result of that is the waiting manualresetevent not ending. Is this because of the new thread or because of the bad event handling of the web service? If yes, what is a reasonable solution?

© Stack Overflow or respective owner

Related posts about c#

Related posts about wcf