Brian Gideon
10/17/2002 4:47:00 PM
My guess is that you're trying to kill a process that wasn't started under
your login. When starting the program from VS.NET it may be running under a
different login with elevated privileges which might explain why it works in
that situation and not the other.
Brian
"Ming Zhang" <mzhang@mpsbc.com> wrote in message
news:u#33wrTdCHA.2408@tkmsftngp11...
> Hi experts:
> I wrote a C# program to kill a process by calling Process.Kill(). It works
> fine when I debug it(press F5). It even works when I launch it from
> DevStudio without debug(press Ctrl+F5). But when I run the exe directly,
it
> throws an exception say "Access Denied".
> Any suggestion.
>
> Thanks
>
>