evesseTefly
New Member
Hi, here's an odd one. I'm trying to list running processes on my server. When I run the following code on my WinXP Pro dev machine, it lists my procs, when I run it on my Win2k Server SP 2 with (both machines running .NET v1.0) I get ACESS DENIED. I have even tried changing the IUSER account to the computer's Administrator to see if it was a permissions thing. I've also done this with codebehind and compiled DLLs, again works on Dev machine, fails on server.<BR><BR><%@ Import Namespace="System" %><BR><%@ Import Namespace="System.Diagnostics" %><BR><script language=vb runat=server><BR> Sub Page_Load(Sender As Object, E As EventArgs)<BR> Dim myProcesses As Process()<BR> myProcesses = Process.GetProcesses(".")<BR> Dim myProcess As Process<BR> dim sProcs as String<BR> sProcs = ""<BR> For Each myProcess In myProcesses<BR> sProcs = sProcs & myProcess.ProcessName.tostring & "<BR>"<BR> Next myProcess<BR> Message.Text = sProcs<BR> End Sub<BR></script><BR> <body><BR> <asp:label id="Message" runat=server/><BR> </body><BR></html>