473,511 Members | 10,041 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Listing/killing processes on IIS6....

Stu
Hi,

I have an asp.net page that lists all running processes on the server using
the script below:

Dim p As Process
For Each p In Process.GetProcesses
sb.Append(p.ProcessName)
sb.Append("<br>")
Next

When I run this locally it works fine (on XP). When I uplaod it to the Win
2003 server I get the 'Access is denied' error shown at the bottom of the
page.

This app is running using it's own user credentials (as I am doing word
automation) - how do I allow the user this web site is running as to
list/stop processes on the server?

Thanks in advance,

Stu

-----------------------------------------------------------------
The error:
Server Error in '/' Application.
--------------------------------------------------------------------------------

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
Nov 19 '05 #1
2 1144
Grant the necessary permissions to the user account under which the ASP.Net
app is running. Alternatively, use impersonation.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Everybody picks their nose,
But some people are better at hiding it.

"Stu" <s.****@cergis.com> wrote in message
news:%2******************@TK2MSFTNGP10.phx.gbl...
Hi,

I have an asp.net page that lists all running processes on the server
using the script below:

Dim p As Process
For Each p In Process.GetProcesses
sb.Append(p.ProcessName)
sb.Append("<br>")
Next

When I run this locally it works fine (on XP). When I uplaod it to the Win
2003 server I get the 'Access is denied' error shown at the bottom of the
page.

This app is running using it's own user credentials (as I am doing word
automation) - how do I allow the user this web site is running as to
list/stop processes on the server?

Thanks in advance,

Stu

-----------------------------------------------------------------
The error:
Server Error in '/' Application.
--------------------------------------------------------------------------------

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

Nov 19 '05 #2
Stu
Which files require the persmissions?

I have even run the web site impersonating the administrator account
(briefly!). This allowed me to list the processes but noty stop one.

Thanks in advance,
Stu
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:e6**************@TK2MSFTNGP12.phx.gbl...
Grant the necessary permissions to the user account under which the
ASP.Net app is running. Alternatively, use impersonation.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
Everybody picks their nose,
But some people are better at hiding it.

"Stu" <s.****@cergis.com> wrote in message
news:%2******************@TK2MSFTNGP10.phx.gbl...
Hi,

I have an asp.net page that lists all running processes on the server
using the script below:

Dim p As Process
For Each p In Process.GetProcesses
sb.Append(p.ProcessName)
sb.Append("<br>")
Next

When I run this locally it works fine (on XP). When I uplaod it to the
Win 2003 server I get the 'Access is denied' error shown at the bottom of
the page.

This app is running using it's own user credentials (as I am doing word
automation) - how do I allow the user this web site is running as to
list/stop processes on the server?

Thanks in advance,

Stu

-----------------------------------------------------------------
The error:
Server Error in '/' Application.
--------------------------------------------------------------------------------

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


Nov 19 '05 #3

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

Similar topics

16
2964
by: Laura Conrad | last post by:
I'm writing an application that has to spawn some processes and then kill them later. It doesn't need to talk or listen to them while they're running, but there are stop and start buttons and the...
7
717
by: Yosh | last post by:
I am developing an application that will stop and start a process on a remote machine. What security rights are needed for my application to be able to do this? Hope this makes sense. Yosh
2
4883
by: Mark | last post by:
Hi... We're looking at moving an ASP app from IIS 5 to IIS 6. In general things seem to be working okay, but there are some oddities around the edges. One of those unanticipated changes has to...
10
9849
by: Jacek Popławski | last post by:
Hello. I am going to write python script which will read python command from socket, run it and return some values back to socket. My problem is, that I need some timeout. I need to say for...
39
2498
by: clintonG | last post by:
This is not about starting a fight but an observation that seems to be proving itself on its own merit and is therefore simply a point of conjecture. I did not get serious about writing software...
6
4602
by: laststubborn | last post by:
Hi everybody, We have a very large database and high transaction volume. Time to time these transactions are locking each other and decrease the performance of the database. Is there any way...
4
1606
by: Miro | last post by:
I'm using VB.Net 2003 I have code - it works great - to kill a process(s) if they are running. ---- Dim myProcesses() As Process 'Funny - withouth the () in the myProcesses it does not work...
6
1897
by: Roger Heathcote | last post by:
sjdevnull@yahoo.com wrote: <snip> Fair point, but for sub processes that need to be in close contact with the original app, or very small functions that you'd like 100s or 1000s of it seems...
3
2380
by: eeriehunk | last post by:
Hi All, I am a little confused between a session and a process. I learnt that an Oracle Session is created for every login. And we can run many processes in one session. I have also learnt how to...
0
7148
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
7367
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
7430
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7089
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
7517
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...
1
5072
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3230
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3217
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
790
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.