Visual Studio .NET - windows service initializecomponent exception
Asked By vishal
03-Sep-10 02:18 AM
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
Venkat K replied to vishal
It seems this thread resolve the problem, it may help you.
http://stackoverflow.com/questions/1418466/single-threaded-apartment-cannot-instantiate-activex-control
Thanks
vishal replied to Venkat K
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
Wise for Visual Studio.NET Wise for Visual Studio.NET By Peter A. Bromberg, Ph.D. To "Print This Page" Link Peter Bromberg Wise for Visual Studio .NET is a total and complete installation development system for creating and editing Windows® Installer
visual studio.net 2003 and Access 2007 database .NET Framework Hi I am currently using Visual Studio.Net 2003 running on Windows Server 2000 operating system. I have used Visual Studio.net 2003 connecting to Access 2002 databases in the pass with great success. Now
Visual Studio .net .NET Framework Hi NG, ich habe vor längerer Zeit mit Visual Studio .Net 2003 gearbeitet und überlege momentan auf einen neueren Stand upzudaten. Ein Visual Studio .Net 2008 scheint es nicht zu geben. Habe zumindest mit googeln nichts gefunden. Was
Visual Studio versioning . . . . how to tell? .NET Framework To my knowledge, Visual studio 6 was released in 1998, then Visual Studio .NET 2002 is VS 7, then Visual Studio .NET 2003 is VS 7.1, then Visual
Is Visual Studio self-hosting ? .NET Framework Does Microsoft use Visual Studio IDE, Visual Studio Debugger, Visual Studio Linker and Visual Studio compiler for developing Visual Studio ? Or is Visual Studio not