windows service initializecomponent exception

Asked By vishal
03-Sep-10 02:18 AM
Earn up to 0 extra points for answering this tough question.

hi,

ActiveX control '8856f961-340a-11d0-a96b-00c04fd705a2' cannot be instantiated because the current thread is not in a single-threaded apartment.
I m getting this error when I m trying to execute initialize component in windows service.
I m using webbrowser control in windows service.
when i go through with this error i found some thread work has to be done, but I dont get proper solution.
Please help me...

      Regards,
       Vishal John  

  re: windows service initializecomponent exception

Venkat K replied to vishal
03-Sep-10 03:30 AM

  re: windows service initializecomponent exception

vishal replied to Venkat K
03-Sep-10 03:41 AM
hi venkat,

     Thanks 4 ur reply...
I already gothrough with thhis link. but i dont find anything good.
pls tell me how can we use webbrwser in  a  windows service.
if u can send me any code it will be more helpful.
my requirement is that i want to rediredct to a webpage from a windows service.

               Regards,
                     Vishal John
Create New Account