Hi
What is the concret win32exception do you get?
Is it similar with below?
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.ComponentModel.Win32Exception: Access is denied
If so I think it is because the user accout did not have the enough
privilegeto open the process.
In the underlying level, the Process class will try to call the OpenProcess
API so that it can monitor the Process status.
You can look into the OpenProcess API in MSDN.
Remarks
To open a handle to another another process and obtain full access rights,
you must enable the SeDebugPrivilege privilege. For more information, see
Changing Privileges in a Token.
The handle returned by the OpenProcess function can be used in any function
that requires a handle to a process, such as the wait functions, provided
the appropriate access rights were requested.
When you are finished with the handle, be sure to close it using the
CloseHandle function.
I think you may try to Impersonalte the administrator account to do the
privilege job.
319615 PRB: "Unable to Impersonate User" Error Message When You Use
http://support.microsoft.com/?id=319615
248187 How to impersonate a user from Active Server Pages
http://support.microsoft.com/?id=248187
Best regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! -
www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.