Link to home
Start Free TrialLog in
Avatar of john5490
john5490

asked on

Windows service program running under vmware

I wrote a windows service program that reads a text file from a shared drive, parses the text file into fields that get inserted in a SQL server table. Its a standard service program utilizing a worker thread to do processing and normal exception handling is done.  It runs on a Windows 2003 server. The program works fine until the vmware server is rebooted.
The service program keeps the vmserver from booting properly. The shared drive is no longer accessible. The RDP services do not work. When RDPing into the machine you get a continous "Initialing User Profile". The only way to boot the machine is to physicall start the server in safe mode then disable the service.  The Application event log shows the service started before VMTOOLS and the Restart.Service  is active. This causes a fileio error on the drive that is not active which somehow stops the boot process. If the scheduler starts the service after the vmware session is active everything works however I cannot make the service automatic because of this issue.
ASKER CERTIFIED SOLUTION
Avatar of mwheeler1982
mwheeler1982
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of john5490
john5490

ASKER

This may work. I have tried creating a DependOnService keys for this service using keys  like RPCss(Remote procedure calls)  but Im unsure as to the specific service that I need the dependency set to. Im trying to find out what specific service is responsible for mounting the file system on this VM machine and set a depencency on that service. Unlike normal machine the file system the service is accessing is not the boot drive and it become available sometime after the boot process is underway.