Error: Could not instantiate activex control ‘xxxx-xxx’ because the current thread is not in a single threaded apartment
By rickvdbosch
- 1 minutes read - 77 wordsAt our current project, we have an application which is deployed using No Touch Deployment. Because of some SEHException we got a few months back, we started our application in a separate thread using a launcher class which contains the Main() method for the application. Recently we added functionality to display HTML pages our application generates, so we added the ActiveX webbrowser (in AxSHDocVw.dll).
<p>
thread.ApartmentState = ApartmentState.STA;<br /> </font><font size="2"><br /> thread.Start();<br /> }</font>
</p>