GetProcesses - Access is denied

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • David Hwang

    #1

    GetProcesses - Access is denied

    Need help to find out why GetProcesses() failed. I have
    given 'administrators ' right to ASP .NET machine user,
    what else?
    =============== =============== ============
    Access is denied
    Description: An unhandled exception occurred during the
    execution of the current web request. Please review the
    stack trace for more information about the error and
    where it originated in the code.

    Exception Details: System.Componen tModel.Win32Exc eption:
    Access is denied

    Source Error:

    An unhandled exception was generated during the execution
    of the current web request. Information regarding the
    origin and location of the exception can be identified
    using the exception stack trace below.

    Stack Trace:


    [Win32Exception (0x80004005): Access is denied]
    System.Diagnost ics.Performance Monitor.GetData (String
    item) +491

    System.Diagnost ics.Performance CounterLib.GetP erformanceDat
    a(String item) +158

    System.Diagnost ics.Performance CounterLib.get_ CategoryTable
    () +80

    System.Diagnost ics.Performance CounterLib.GetP erformanceDat
    a(String[] categories, Int32[] categoryIndexes ) +56
    System.Diagnost ics.NtProcessMa nager.GetProces sInfos
    (PerformanceCou nterLib library) +157

    [InvalidOperatio nException: Couldn't get process
    information from remote machine.]
    System.Diagnost ics.NtProcessMa nager.GetProces sInfos
    (PerformanceCou nterLib library) +259
    System.Diagnost ics.NtProcessMa nager.GetProces sInfos
    (String machineName, Boolean isRemoteMachine ) +152
    System.Diagnost ics.ProcessMana ger.GetProcessI nfos
    (String machineName) +36
    System.Diagnost ics.Process.Get Processes(Strin g
    machineName) +39
    System.Diagnost ics.Process.Get Processes() +11
    walledgarden.vi ewallprocess.Cr eateDataSource( ) in
    c:\inetpub\wwwr oot\walledgarde n\viewallproces s.aspx.cs:56
    walledgarden.vi ewallprocess.Pa ge_Load(Object sender,
    EventArgs e) in
    c:\inetpub\wwwr oot\walledgarde n\viewallproces s.aspx.cs:134
    System.Web.UI.C ontrol.OnLoad(E ventArgs e) +67
    System.Web.UI.C ontrol.LoadRecu rsive() +35
    System.Web.UI.P age.ProcessRequ estMain() +731



Working...