Connecting Tech Pros Worldwide Help | Site Map

System.Threading.ThreadStateException

Newbie
 
Join Date: Jan 2007
Posts: 2
#1: Jan 29 '07
hi all,
i faced an error in my project:
"An unhandled exception of type 'System.Threading.ThreadStateException'
occurred in system.windows.forms.dll
Additional information: Could not instantiate ActiveX control
'648a5600-2c6e-101b-82b6-000000000014' because the current thread is not in
a single-threaded apartment."

after i set as below:
Thread.CurrentThread.ApartmentState = ApartmentState.STA

other error occured:
Fail to set ApartmentState

anyone know why?
please help...Thanks
Reply