title: How do I find out why I am getting an EOSError code 5 - Access Denied registering a service?
body: <p>I am getting an EOSError code 5 - Access Denied when the 
  TServiceApplication attempts to register the service with the 
  ServiceManager.</p>
  
  <p>I am using XE2 Win7 64 bit.  The error occurs for both 32 and 64 bit 
  targets.</p>
  
  <p>I have a datamodule that uses ADO to connect to a database, and the web 
  services server code.  All the code is used in a WinUI project which 
  works.  I also have an untested ISAPI DLL based on the same core code.</p>
  
  <p>This is the first time I have tried incorporating a Web Services Server 
  into an NT Service.</p>
  
  <p>I have traced the VCL code that produces the error at line 1027 of 
  Vcl.SvcMgr but I don't know why I am getting the Access Denied error.  I 
  have written other  NT Services that connect to the database through ADO 
  and have not encountered such an error (although written with XE).</p>
  
  <p>Any pointers would be appreciated.</p>