D
David Hwang
I am trying to call GetProcesses() on local machine to
get a listing of all processes, but am getting the
following error messages. I thought by
given "administrators" privilege to ASP .NET machine user
account can solve the problem, but not the case. Does
anyone out there know how to solve this problem. Thanks.
Error message:
=====================
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.ComponentModel.Win32Exception:
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.Diagnostics.PerformanceMonitor.GetData(String
item) +491
System.Diagnostics.PerformanceCounterLib.GetPerformanceDat
a(String item) +158
System.Diagnostics.PerformanceCounterLib.get_CategoryTable
() +80
System.Diagnostics.PerformanceCounterLib.GetPerformanceDat
a(String[] categories, Int32[] categoryIndexes) +56
System.Diagnostics.NtProcessManager.GetProcessInfos
(PerformanceCounterLib library) +157
[InvalidOperationException: Couldn't get process
information from remote machine.]
System.Diagnostics.NtProcessManager.GetProcessInfos
(PerformanceCounterLib library) +259
System.Diagnostics.NtProcessManager.GetProcessInfos
(String machineName, Boolean isRemoteMachine) +152
System.Diagnostics.ProcessManager.GetProcessInfos
(String machineName) +36
System.Diagnostics.Process.GetProcesses(String
machineName) +39
System.Diagnostics.Process.GetProcesses() +11
walledgarden.viewallprocess.CreateDataSource() in
c:\inetpub\wwwroot\walledgarden\viewallprocess.aspx.cs:56
walledgarden.viewallprocess.Page_Load(Object sender,
EventArgs e) in
c:\inetpub\wwwroot\walledgarden\viewallprocess.aspx.cs:134
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +731
get a listing of all processes, but am getting the
following error messages. I thought by
given "administrators" privilege to ASP .NET machine user
account can solve the problem, but not the case. Does
anyone out there know how to solve this problem. Thanks.
Error message:
=====================
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.ComponentModel.Win32Exception:
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.Diagnostics.PerformanceMonitor.GetData(String
item) +491
System.Diagnostics.PerformanceCounterLib.GetPerformanceDat
a(String item) +158
System.Diagnostics.PerformanceCounterLib.get_CategoryTable
() +80
System.Diagnostics.PerformanceCounterLib.GetPerformanceDat
a(String[] categories, Int32[] categoryIndexes) +56
System.Diagnostics.NtProcessManager.GetProcessInfos
(PerformanceCounterLib library) +157
[InvalidOperationException: Couldn't get process
information from remote machine.]
System.Diagnostics.NtProcessManager.GetProcessInfos
(PerformanceCounterLib library) +259
System.Diagnostics.NtProcessManager.GetProcessInfos
(String machineName, Boolean isRemoteMachine) +152
System.Diagnostics.ProcessManager.GetProcessInfos
(String machineName) +36
System.Diagnostics.Process.GetProcesses(String
machineName) +39
System.Diagnostics.Process.GetProcesses() +11
walledgarden.viewallprocess.CreateDataSource() in
c:\inetpub\wwwroot\walledgarden\viewallprocess.aspx.cs:56
walledgarden.viewallprocess.Page_Load(Object sender,
EventArgs e) in
c:\inetpub\wwwroot\walledgarden\viewallprocess.aspx.cs:134
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +731