473,408 Members | 2,839 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

Access is denied - GetProcesses()

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(Stri ng
item) +491

System.Diagnostics.PerformanceCounterLib.GetPerfor manceDat
a(String item) +158

System.Diagnostics.PerformanceCounterLib.get_Categ oryTable
() +80

System.Diagnostics.PerformanceCounterLib.GetPerfor manceDat
a(String[] categories, Int32[] categoryIndexes) +56
System.Diagnostics.NtProcessManager.GetProcessInfo s
(PerformanceCounterLib library) +157

[InvalidOperationException: Couldn't get process
information from remote machine.]
System.Diagnostics.NtProcessManager.GetProcessInfo s
(PerformanceCounterLib library) +259
System.Diagnostics.NtProcessManager.GetProcessInfo s
(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.asp x.cs:56
walledgarden.viewallprocess.Page_Load(Object sender,
EventArgs e) in
c:\inetpub\wwwroot\walledgarden\viewallprocess.asp x.cs:134
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +731


----------------------------------------------------------
----------------------
Version Information: Microsoft .NET Framework
Version:1.1.4322.573; ASP.NET Version:1.1.4322.573
Nov 17 '05 #1
0 1208

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: David Hwang | last post by:
Need help to find out why GetProcesses() failed. I have given 'administrators' right to ASP .NET machine user, what else? ========================================== Access is denied...
9
by: | last post by:
Hi All, I have allready tried to ask a similar question , but got no answer until now. In the meantime, I found, that I cannot understand some thread-settings for the Main() function . If I use...
5
by: Jane | last post by:
Hi, I try Process remoteByName = Process.GetProcesses(); it works but when I try Process remoteByName = Process.GetProcesses("localhost"); it fails with invalid operation please Help me!...
0
by: ASP.Confused | last post by:
The old message looked a little stale, so I am re-posting it here. Anybody have any ideas of what I could do?!? The previous responses to this question are below. If you want to look at the...
12
by: Ron Weldy | last post by:
I have a test server runinng 2003/IIS 6 with a mixture of asp and asp.net files. On my workstation I have a share set up to the folder where the web files reside. I am just doing quick and dirty...
3
by: Shailesh Humbad | last post by:
I figured out what was causing the "Access is Denied" error when calling functions from referenced DLLs in my service. I've tried to be very detailed, so bear with me. It turns out that...
8
by: Jeremy Ames | last post by:
I am trying to move an application from my system to a new test system. I really should have tried an easier program first, but I didn't really have a chance. My application was originally written in...
0
by: Andy | last post by:
Thanks Peter, I thought I'd give an update on this problem. My application had 2 assemblies that contained classed for the Data access and business logic layer. It was on one of them that I was...
1
by: inlovewithmusic | last post by:
Hello, I am trying to write an application that gets the amount of CPU that a process is using , its throwing an a Win 32 exception that says Access is denied to the UserProcessorTime property...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.