System.Diagnostics.Process.Start fails on windows server 2003

D

Daniel

System.Diagnostics.Process.Start fails on windows server 2003

the process returns process.ExitCode == 0 but executing any process with
System.Diagnostics.Process.Start on windows xp works fine.

anything to do different for windows server 2003? some special permission
for the process that executes another executable with
System.Diagnostics.Process.Start ??

here is the code:

System.Diagnostics.Process process =
System.Diagnostics.Process.Start(info); // could be any executable file even
notepad.exe
process.WaitForExit();
if(process.ExitCode != 0)
{
throw new Exception("unable to execute");
}
 
G

Guest

I'm not sure if this is your issue, but check that perfomance counters are
enabled. to do this go to START/RUN/ and type in Exctrlst.exe then go through
all items and make sure the “Performance Counters Enabled†checkbox is ticked.
 
I

Ignacio Machin \( .NET/ C# MVP \)

Hi,

How are you running this code? from what kind of process?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top