How to Rebuild Asp.net Perfmon Counters in Win2003 or Win2008

By visual.net[at]hotmail[dot]com

May 2010

 

 

Feel more than free to make a full backup of your server.  There is some wisdom there.

I suggest beginning by removing asp.net performance counters from the registry.

 

 

 

Note how there are a quite a few performance keys at HKLM\SYSTEM\CurrentControlSet\Services\

 

Your server may not have all of these keys.  Depends on whether the server is a 32 bit or 64 bit OS and which of the frameworks have been installed.

First back up HKLM\SYSTEM\CurrentControlSet\Services\ by right-clicking and selecting EXPORT from the grey menu

 

 

When the performance keys are gone from the asp.net keys, the respective perf counters will disappear from Perfmon’s list of available objects.  

 

To rebuilt, we’ll begin with simply running this command:

aspnet_regiis.exe –ir

 

But this command will probably need to be run from more than one directory.   I’d suggest running it from any or all of the following directories:

·        C:\Windows\Microsoft.NET\Framework\v1.1.4322

·        C:\Windows\Microsoft.NET\Framework\v2.0.50727

·        C:\Windows\Microsoft.NET\Framework\v4.0.30128

·        C:\Windows\Microsoft.NET\Framework64\v2.0.50727

·        C:\Windows\Microsoft.NET\Framework64\v4.0.30128

 

The performance keys should be repopulated in the registry and the performance objects should reappear in Perfmon.

 

 

 

 

 

 

 

==================Additional search keywords:====================

 

lodctr aspnet_perf2.ini       lodctr aspnet_perf.ini

unlodctr asp.net_2.0.50727              unldctr asp.net

net stop "remote registry"

 

asp.net counter missing; aspnet counter missing; "not there"; "can't find"; "cannot
find"; absent; "not visible"; "not present"

lodctr /S:C:\Users\Me\mycounters.ini

lodctr /R:C:\Users\Me\mycounters.ini

 

158874 Finding Extensible Counters Used by Performance Monitor
http://support.microsoft.com/default.aspx?scid=kb;EN-US;158874  

KB 152513 Troubleshooting Performance Monitor Counter Problems

300956 How to manually rebuild Performance Counter Library values
http://support.microsoft.com/default.aspx?scid=kb;EN-US;300956

891238 Some performance counter objects are not available for a 32-bit process in
Windows Server 2003 for Itanium-based systems
http://support.microsoft.com/default.aspx?scid=kb;EN-US;891238

922775 How to troubleshoot monitoring and logging issues for Perf counters in the
Microsoft .NET Framework 2.0
http://support.microsoft.com/default.aspx?scid=kb;EN-US;922775