April 7th, 2010, 03:50 PM
Simple windows service does not run under XP
So I am trying to build a service for XP SP3 in VS2008, using the C++ Windows Service template.
The VS2008 is sitting on a Vista machine, but I have an XP machine running in VmWare for testing.
I have tested the service on Vista and it works perfectly, even self installing with "servicename -Install", all I have to do then is tell it to start, and it performs the tasks I require. However when copying the same binary I just ran over to the XP VM, and running the same command, I get: "The System cannot execute the specified program." I thought it was perhaps the VM had a lower vesion of .NET so I even installed .NET 3.5 and all of its service packs. Still no go.
I am new to writing services for windows so I may be overlooking something obvious. Any help is appreciated.
Tags for this Thread
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!