473,386 Members | 1,790 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,386 software developers and data experts.

System.Diagnostics, Process and Security

I am trying to view a list of running processes using ASP.NET with C#, I
found System.Diagnostics.Process which seems to work good with IIS 5 and XP,
when I move the application to Windows 2000 Server, I start having alot of
access denied errors. Before i only got access denied when trying to stop
another user process, on win2000 i get it for everything, I used an admin
enabled account with <identity> which didn't fix it.

In the event log, there is errors about accessing performance metrics or
something on MS technet, it says you must be admin.

I also went into machine.config and set worker process to run as SYSTEM
rather than MACHINE, anyone have any ideas what I can do to fix this?
Nov 18 '05 #1
2 2105
Did you restart IIS after changing machine.config?

-John Oakes

"Michael Johnson Sr." <m.**********@acmewidgets.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
I am trying to view a list of running processes using ASP.NET with C#, I
found System.Diagnostics.Process which seems to work good with IIS 5 and XP, when I move the application to Windows 2000 Server, I start having alot of
access denied errors. Before i only got access denied when trying to stop
another user process, on win2000 i get it for everything, I used an admin
enabled account with <identity> which didn't fix it.

In the event log, there is errors about accessing performance metrics or
something on MS technet, it says you must be admin.

I also went into machine.config and set worker process to run as SYSTEM
rather than MACHINE, anyone have any ideas what I can do to fix this?

Nov 18 '05 #2
Yes, but funny thing, i removed identity, and now it seems to work.
I was messing around with policies and a few other things but I reset them
all. But now it seems to work without any identity statement in the web
config, perhaps it was system statement in the process manager, I really am
not 100% sure. It worked flawless on IIS 5 and Windows XP but was a bear on
the deployed Windows 2000 IIS 5
"John Oakes" <jo**@networkproductions.net> wrote in message
news:OK**************@TK2MSFTNGP11.phx.gbl...
Did you restart IIS after changing machine.config?

-John Oakes

"Michael Johnson Sr." <m.**********@acmewidgets.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
I am trying to view a list of running processes using ASP.NET with C#, I
found System.Diagnostics.Process which seems to work good with IIS 5 and

XP,
when I move the application to Windows 2000 Server, I start having alot of access denied errors. Before i only got access denied when trying to stop another user process, on win2000 i get it for everything, I used an admin enabled account with <identity> which didn't fix it.

In the event log, there is errors about accessing performance metrics or
something on MS technet, it says you must be admin.

I also went into machine.config and set worker process to run as SYSTEM
rather than MACHINE, anyone have any ideas what I can do to fix this?


Nov 18 '05 #3

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

Similar topics

5
by: toby | last post by:
Can any one help? I'm trying to use System.Diagnostics.Process.Start to open legacy MS access aplications (ade and mdb files) and vb 6 .exe's using asp.net. There is something confusing going on?!?...
0
by: marccruz | last post by:
Given an instance of System.Diagnostics.Process, how can I get the parent process o Given an instance of System.Diagnostics.Process, how can I get the child processes For example, I start a...
1
by: solex | last post by:
Hello All, Hopefully someone has run into this error. I have written a class(source below) that launches a thread to monitor the StandardOutput of a System.Diagnostics.Process, in particular I...
0
by: Brad | last post by:
I just recently applied the security patch MS04-024 and now in a program that uses System.Diagnostics.Process when I start the process it prompts for a response in a file download dialog box. This...
11
by: Nurit N | last post by:
This is the third newsgroup that I'm posting my problem. I'm sorry for the multiple posts but the matter becoming urgent. I hope this is the right place for it... I have created a very...
2
by: Rupali | last post by:
Hi all, I am tring to call a .vbs file using System.Diagnostics.Process class with following code. Process objProcess = new Process(); objProcess.StartInfo.FileName = "C:\\testScript.vbs";...
0
by: Daniel | last post by:
System.Diagnostics.Process.Start fails on windows server 2003 the process returns process.ExitCode == 0 but executing any process with System.Diagnostics.Process.Start on windows xp works fine....
0
by: Colin Williams | last post by:
I am using the code below to map network drive and then fire up an app in a sub dir of that drive. However when using the file open dialog from that app, drive K: appears just as Network drive K:...
2
by: test3 | last post by:
Hello folks, I'm using System.Diagnostics.Process to start a thirdparty program (that works perfectly when started via command line). I'm using Process.StandardOutput to get the output of the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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,...

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.