title: Unable to access DCOM object from Windows Service written in c# (Windows 2003 server) but can access the object when hosted as a console application
body: <p>I have written an application in C# that writes to an accounting system via a DCOM object (name of the object is Toolkit Object). When this application is hosted as Windows Service in Windows 2003 the service is unable to open the DCOM object although the user identity under which the service is running has all the necessary access rights.</p>
  
  <p>When I host the same application using a console app it works fine.</p>
  
  <p>I have tried tweaking the access rights to the DCOM object through DCOMCNFG but nothing seems to work.</p>