I am developing a Windows service in C#.net , Account: LocalSystem , System: Windows XP SP3
I want this service to check all registered users if the application is working, and if not, start this AS application with the corresponding username.
I provide a domain, name, password, but Start () throws a Win32Exception "Access denied" exception
process.StartInfo.Domain = domain; process.StartInfo.UserName = name; process.StartInfo.Password = password; process.StartInfo.FileName = fileName; process.StartInfo.UseShellExecute = false; process.Start();
The user whose credentials I provide is in the administrator group - the application starts successfully if it is started manually.
Is this done differently?
Thanks!
source share