Windows services and GetObject

  • Thread starter Thread starter Andrei Prodan
  • Start date Start date
A

Andrei Prodan

Hi everyone,

I have a small piece of code which uses GetObject function
and it is working fine in a windows application developed
under .NET

In a windows service application, the GetObject function
returns an error: "Cannot create ActiveX component"

Does anyone knows why ??

Thank you very much,
Andrei
 
Its most likely a permissions problem. Install the service to run as your
user account and see if that helps.

--
Regards

John Timney (Microsoft ASP.NET MVP)
----------------------------------------------
<shameless_author_plug>
Professional .NET for Java Developers with C#
ISBN:1-861007-91-4
Professional Windows Forms
ISBN: 1861005547
Professional JSP 2nd Edition
ISBN: 1861004958
Professional JSP
ISBN: 1861003625
Beginning JSP Web Development
ISBN: 1861002092
</shameless_author_plug>
 
Hi Tom,
Thank you for your reply.
Unfortunately still not working. I get the same error.

Regards,
Andrei
 
Back
Top