Process.StartTime Access Denied

前端 未结 5 1369
既然无缘
既然无缘 2020-12-21 04:30

My code needs to determine how long a particular process has been running. But it continues to fail with an access denied error message on the Process.StartTime

5条回答
  •  鱼传尺愫
    2020-12-21 05:03

    OK, sorry that didn't work... I am no expert on ASP.NET impersonation, I tend to use app pools which I don't think you can do on W2K Have you tried writing a tiny little test app which does the same query, and then running that as various users?

    I am reluctant to post a chunk of MS framework code here, but you could use either Reflector or this: http://www.codeplex.com/NetMassDownloader to get the source code for the relevant bits of the framework so that you could try implementing various bits to see where it fails.

    Can you get any other info about the process without getting Access Denied?

提交回复
热议问题