Click to See Complete Forum and Search --> : Process Model Enabling
redijedi
04-05-2004, 12:44 AM
I've been trying to get server information to the browser as shown in this article http://aspnet.4guysfromrolla.com/articles/021502-1.aspx.
The problem is that I keep getting this error "Process information is available only when the ASP.NET process model is enabled."
Does anyone know how to get rid of this?
buntine
04-05-2004, 01:23 AM
Does your server have .NET support? If your using classic ASP, you need to use the [b]ServerVariables/[b] collection.
Regards.
redijedi
04-05-2004, 05:11 PM
Yes my server supports ASP.NET. It's just that certain objects from certain processes bring up odd errors. I'm not sure what that one means.
PeOfEo
04-05-2004, 05:21 PM
Ahhh, good article www.quasi-ke.servebeer.com using it myself.
Dim objCurrentInfo as ProcessInfo = ProcessModelInfo.GetCurrentProcessInfo()
lblProcID.Text = "Current server Process ID: " & objCurrentInfo.ProcessID
...
that is the code for the process stuff in particular. You are going to need to setup the performance counters that the article tells you to in order for this code to run (edit:nm that is part of the performance tracking article, not the processes info article), also there is a section of the article "using the processmodelinfo class" you are going to need to do what it says there. You will need direct access to the server or remote desktop to do that.
Also, is it failing on both the GetHistory and GetCurrent?
btw - machine.config is located here:
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\CONFIG\machine.config
atleast thats where it is installed on my machine
redijedi
04-07-2004, 10:31 PM
The code seems to be failing on Dim objCurrentInfo as ProcessInfo = ProcessModelInfo.GetCurrentProcessInfo()
.
PeOfEo
04-08-2004, 05:35 PM
Originally posted by PeOfEo
Dim objCurrentInfo as ProcessInfo = ProcessModelInfo.GetCurrentProcessInfo()
lblProcID.Text = "Current server Process ID: " & objCurrentInfo.ProcessID
...
what else is new? I already assumed thats where it would be failing, but tid you setup your machine.config like the article said it had to be setup?