ActiveX control in Windows Service

Hi

 

I need to use an ActiveX control in my Windows Service. It doesn’t need to have a form or show anything to the user.

 

When I debug my Windows Service i can see the AtiveX control object have a lot of inside exceptions like this one:

 

SHDocVw.InternetExplorerClass Document threw an exception of type System.Runtime.InteropServices.COMException

 

Yes its the Internet Explorer ActiveX!

 

So how do I use an ActiveX object in a Windows Service (Internet Explorer)

 

(I know its risky and a bad design to use ActiveX controls in a Windows Service, but I don’t care ... if is possible, plzz help)



Answer this question

ActiveX control in Windows Service

  • ActiveX control in Windows Service