Ask a Question related to ASP.NET Security, Design and Development.
-
chortler@fetchmail.co.uk #1
Performance Counters - Access Denied??
When I try the following piece of code, using a administrator's
account, I get an error of access denied. Getting the counters for the
local machine works fine. Any ideas??
WEB.CONFIG
identity impersonate="true" userName="DOMAIN\admin" password="xyz"/>
Public Class Class1
Dim perfFreeMem As New PerformanceCounter("Memory", "Available
MBytes")
Dim perfServSess As New PerformanceCounter("Server", "Server
Sessions")
Sub New(ByVal sServername As String)
perfFreeMem.MachineName = sServername
perfServSess.MachineName = sServername
End Sub
Public ReadOnly Property GetValue() As String
Get
On Error GoTo Err_Handler
Dim sTmp As String
sTmp = perfFreeMem.NextValue & " " & perfServSess.NextValue
Return sTmp
Err_Handler:
sTmp = "- " & Err.Description()
Return sTmp
End Get
End Property
End Class
chortler@fetchmail.co.uk Guest
-
Performance Counters on Windows Server 2003
This is a new install of ColdFusion MX7 on Windows Server 2003. When I open up Performance Monitor in the Operating System I don't have any counters... -
CFMX 7 Multiserver Conf Performance counters
Hi, I am very new to Cold Fusion. I have seen many unreplied posts on ColdFusion Perfomance....I have CFMX 7 multiserver configuration running on... -
Web Service + Anon Access, but getting 401 Access Denied Error
I have a simple webservice that just returns a string. The security for this is set to windows authentication in IIS (XP Professional) and anonymous... -
Access denied when creating Access application object
In an ASP file I am running the following in VBScript in order to extract data from an Access 2002 MDB file which is physically located in the... -
access denied on data access pages
I have created data access pages that worked well when I tried them on two separate computer simutaneously, but when we went into production we got... -
Alvin Bruney [MVP - ASP.NET] #2
Re: Performance Counters - Access Denied??
Perf counters run as COM calls, you need to add the appropriate permissions
to the COM process. One quick way to test this is to bump the process up to
system in the machine config files. Once the call to perf counters works,
figure out exactly what permissions to add and change the account back down
to what it was in the machine config file. It's very dangerous to leave the
account running under system
--
Regards,
Alvin Bruney - ASP.NET MVP
[Shameless Author Plug]
The Microsoft Office Web Components Black Book with .NET
Now available @ [url]www.lulu.com/owc[/url], Amazon.com etc
<chortler@fetchmail.co.uk> wrote in message
news:1115718097.145092.310050@o13g2000cwo.googlegr oups.com...> When I try the following piece of code, using a administrator's
> account, I get an error of access denied. Getting the counters for the
> local machine works fine. Any ideas??
>
>
> WEB.CONFIG
> identity impersonate="true" userName="DOMAIN\admin" password="xyz"/>
>
>
>
> Public Class Class1
> Dim perfFreeMem As New PerformanceCounter("Memory", "Available
> MBytes")
> Dim perfServSess As New PerformanceCounter("Server", "Server
> Sessions")
>
> Sub New(ByVal sServername As String)
> perfFreeMem.MachineName = sServername
> perfServSess.MachineName = sServername
> End Sub
>
> Public ReadOnly Property GetValue() As String
> Get
> On Error GoTo Err_Handler
> Dim sTmp As String
> sTmp = perfFreeMem.NextValue & " " & perfServSess.NextValue
> Return sTmp
> Err_Handler:
> sTmp = "- " & Err.Description()
> Return sTmp
> End Get
> End Property
> End Class
>
Alvin Bruney [MVP - ASP.NET] Guest



Reply With Quote

