Home All Groups Group Topic Archive Search About

Application crashes when using Process.GetProcessesByName() on W2003 for non-administrator user.

Author
17 May 2006 1:32 PM
roger.dunham
Following on from my earlier posting, I was mistaken about the
exception being thrown.  In reality no exception is thrown (everything
is in a try/catch block)

I have an application that is crashing when it calls
Process.GetProcessesByName() on a Windows Server 2003 box if the user
is not logged in as an administrator.
If logged on as an administrator then everything works as expected.

The user is a member of Performance Monitors Users group (and
Performans Log Users as well).


To make life more interesting, on one W2003 server the application
works correctly, but on another it fails as described above.


This suggests to me that the problem lies somewhere in the W2003 set
up, but I am stumped as to where the problem may lie.


Is there something in .NET configration  (or elsewhere) that would
prevent non-administratior users from accessing the performance
counters?


thanks in advance


Roger Dunham

AddThis Social Bookmark Button