[IronPython] ActiveX STA Issue in compiled Winforms EXE

Davy Mitchell daftspaniel at gmail.com
Sat Nov 8 13:10:16 CET 2008

IPY 2.0 RC1

ActiveX Issue in a pyc compiled Winforms EXE which uses the WebBrowser

Unhandled Exception: System.Threading.ThreadStateException: ActiveX control
'8856f961-340a-11d0-a96b-00c04fd705a2' cannot be instantiated because the
current thread is not in a single-threaded apartment.
   at System.Windows.Forms.WebBrowserBase..ctor(String clsidString)
   at System.Windows.Forms.WebBrowser..ctor()
   at _stub_$643##332(Closure , CallSite , CodeContext , Object )
   at Microsoft.Scripting.Actions.MatchCaller.Call2[T0,T1,TRet](Func`4
target, C

Help!! :-)

Any thoughts before I delve further into this?

Davy Mitchell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20081108/925c88bf/attachment.html>

More information about the Ironpython-users mailing list