none
Perflib Event ID 1008 1001 1023 2001 on .net asp bits dns esent usbperf

    Question

  • Hello All,

    I have an interesting group of errors that always trigger at 3:00 AM Event ID 2001, 1023, 1000 and 1008. I will show the errors below and what steps I have done so far. See attached image for event log.

    This Server 2008 Standard SP2 64bit it is the DC

    Below is each error in order from bottom to top.

    The Open Procedure for service ".NETFramework" in DLL "C:\Windows\system32\mscoree.dll" failed. Performance data for this service will not be available. The first four bytes (DWORD) of the Data section contains the error code. Error 1/22/2013 1008

    The Open Procedure for service "ASP" in DLL "C:\Windows\system32\aspperf.dll" failed. Performance data for this service will not be available. The first four bytes (DWORD) of the Data section contains the error code. Error 1/22/2013 1008

    The Open Procedure for service "ASP.NET_64_2.0.50727" in DLL "C:\Windows\Microsoft.NET\Framework64\v2.0.50727\aspnet_perf.dll" failed. Performance data for this service will not be available. The first four bytes (DWORD) of the Data section contains the error code. Error 1/22/2013 1008

    The Open Procedure for service "BITS" in DLL "C:\Windows\system32\bitsperf.dll" failed. Performance data for this service will not be available. The first four bytes (DWORD) of the Data section contains the error code.

    The Open Procedure for service "DirectoryServices" in DLL "C:\Windows\system32\ntdsperf.dll" failed. Performance data for this service will not be available. The first four bytes (DWORD) of the Data section contains the error code.

    The Open Procedure for service "DNS" in DLL "C:\Windows\system32\dnsperf.dll" failed. Performance data for this service will not be available. The first four bytes (DWORD) of the Data section contains the error code.

    The Open Procedure for service "ESENT" in DLL "C:\Windows\system32\esentprf.dll" failed. Performance data for this service will not be available. The first four bytes (DWORD) of the Data section contains the error code.

    Unable to read the first counter index value from the registry.  The error code returned by the registry is data DWORD 0. EVENT ID 1001

    The Open Procedure for service "InetInfo" in DLL "C:\Windows\system32\infoctrs.dll" failed. Performance data for this service will not be available. The first four bytes (DWORD) of the Data section contains the error code.

    The Open Procedure for service "MSDTC" in DLL "C:\Windows\system32\msdtcuiu.DLL" failed. Performance data for this service will not be available. The first four bytes (DWORD) of the Data section contains the error code.

    Unable to collect the FTP performance statistics.  The error code returned by the service is data DWORD 0.

    The Open Procedure for service "MSFTPSVC" in DLL "C:\Windows\system32\ftpctrs2.dll" failed. Performance data for this service will not be available. The first four bytes (DWORD) of the Data section contains the error code.

    The Open Procedure for service "PSched" in DLL "C:\Windows\system32\pacerprf.dll" failed. Performance data for this service will not be available. The first four bytes (DWORD) of the Data section contains the error code.

    The Open Procedure for service "RemoteAccess" in DLL "C:\Windows\system32\rasctrs.dll" failed. Performance data for this service will not be available. The first four bytes (DWORD) of the Data section contains the error code.

    Windows cannot load the extensible counter DLL TermService. The first four bytes (DWORD) of the Data section contains the Windows error code.

    Unable to read the "First Counter" value under the usbperf\Performance Key. Status codes returned in data.

    The Open Procedure for service "usbhub" in DLL "C:\Windows\system32\usbperf.dll" failed. Performance data for this service will not be available. The first four bytes (DWORD) of the Data section contains the error code.

    Setting up Web Service counters failed, please make sure your Web Service counters are registered correctly.

    The Open Procedure for service "W3SVC" in DLL "C:\Windows\system32\inetsrv\w3ctrs.dll" failed. Performance data for this service will not be available. The first four bytes (DWORD) of the Data section contains the error code.

    A note my backup runs at the time. Steps I have taken so far.

    To restart the W3SVC: 

        • Open an elevated Command Prompt window. Click Start, point to All Programs, click Accessories, right-click Command Prompt, and then click Run as administrator.
        • At the command prompt, type NET STOP W3SVC.
        • At the command prompt, type NET START W3SVC.

    ASP.NET 2.0, 64-bit version

    To run the 64-bit version of ASP.NET 2.0, follow these steps:
    1. Click Start, click Run, type cmd, and then click OK.
    2. Type the following command to disable the 32-bit mode:
      cscript %SYSTEMDRIVE%\inetpub\adminscripts\adsutil.vbs SET W3SVC/AppPools/Enable32bitAppOnWin64 0
    3. Type the following command to install the version of ASP.NET 2.0 and to install the script maps at the IIS root and under:
      %SYSTEMROOT%\Microsoft.NET\Framework64\v2.0.50727\aspnet_regiis.exe -i
    4. Make sure that the status of ASP.NET version 2.0.50727 is set to Allowed in the Web service extension list in Internet Information Services Manager.

    lodctr /r

    Ensure that the counters are not disabled in the registry


    The counters may be disabled via registry settings. Please check the following registry locations to ensure that the counters have not been disabled.

    HKLM\System\CurrentControlSet\Services\%servicename%\Performance

    %servicename% represents any service with a performance counter. For example: PerfDisk, PerfOS, etc.


    There may be registry keys for "DisablePerformanceCounters" in any of these locations. As per the following TechNet article, this value should be set to 0. If the value is anything other than 0 the counter may be disabled.


    Disable Performance Counters
    http://technet.microsoft.com/en-us/library/cc784382.aspx

    A value of 1 means the counter is disabled.
    A value of 2 means the 32-bit counter is disabled.
    A value of 4 measn the 64-bit counter is disabled.

     

    Rebuilding all performance counters including extensible and third-party counters


    To rebuild all Performance counters including extensible and third-party counters, type the following commands at an Administrative command prompt. Press ENTER after each command.

    Rebuilding the counters:
         cd c:\windows\system32
         lodctr /R
         cd c:\windows\sysWOW64
         lodctr /R

    Resyncing the counters with Windows Management Instrumentation (WMI):
         WINMGMT.EXE /RESYNCPERF

    Stop and restart the Performance Logs and Alerts service. 
    Stop and restart the Windows Management Instrumentation service.

    Create a new Data Collector Set (do not use an existing Data Collector Set).

    There are a few other things I have done but these errors persist. Let me know what other steps I can take. Thank you for your time.

    -Jeremy


    Knowledge is power.

    Tuesday, January 22, 2013 11:17 PM

All replies

  • Hi,

    Thank you for the post.

    As far as I understand, this issue may due to corrupt perflib files, you can use exctrlst to either disable the specific counter or use pcrw to rebuild the counter.

    How to manually rebuild Performance Counter Library values

    http://support.microsoft.com/kb/300956/en-us

    Regards,


    Nick Gu - MSFT

    Thursday, January 24, 2013 5:08 AM
    Moderator
  • Hi,

    Thank you for the post.

    As far as I understand, this issue may due to corrupt perflib files, you can use exctrlst to either disable the specific counter or use pcrw to rebuild the counter.

    How to manually rebuild Performance Counter Library values

    http://support.microsoft.com/kb/300956/en-us

    Regards,


    Nick Gu - MSFT

    Nick,

    Thank you for your response, I have tried this article as well and the windows server 2008 CD does not have these on them.

    To rebuild the base performance counter libraries manually, follow these steps:
    1. Expand the Perfc009.dat file and the Perfh009.dat file. These files are located on the Windows Installation Disc. The compressed files are found at <var>DriveLetter</var>:\i386\perfc009.da_ and at <var>DriveLetter</var>:\i386\perfh009.da_. Replace the files that are in the %Systemroot%\System32 folder.
    2. Start Registry Editor, and then locate the following key in the registry:
      HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Perflib
    3. In the registry, change the Last Counter value to 1846 (decimal), and change the Last Help value to 1847 (decimal).
    4. Locate the following registry key to search for services that have a Performancesubkey:
      HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services

    In server 2008 64bit those registry entries do not even exists on my server.

    I even tried the following.

    In Windows Vista/Server 2008 and higher, a very easy command to get your base O.S. performance counters working:

    Click on Start, CMD (evelated as an Administrator)
    Type "C:" without the quotation marks and Enter.
    Type "CD\windows\system32" without the quotation marks and Enter.
    Type "LodCtr.exe /S:Backup_Original.INI" without the quotation marks and Enter.
    Note: This let's you backup the performance counters before we rebuild.
    Type "LodCtr.exe /R:PerfStringBackup.INI" without the quotation marks and Enter.
    Open up Perfmon and check to see if your counters are showing up properly.

    P.S.  Other commands that you can use with LODCTR.exe

    ========================================================
    C:\>lodctr.exe /?

    LODCTR
        Updates registry values related to performance counters.

    Usage:
        LODCTR <INI-FileName>
            INI-FileName is the name of the initialization file that contains
                the counter name definitions and explain text for an extensible
                counter DLL.

        LODCTR /S:<Backup-FileName>
            save the current perf registry strings and info to <Backup-FileName>

        LODCTR /R:<Backup-FileName>
            restore the perf registry strings and info using <Backup-FileName>

        LODCTR /R
            rebuild the perf registry strings and info from scratch based on the cur
    rent
                registry settings and backup INI files.

        LODCTR /T:<Service-Name>
            set the performance counter service as trusted.

        LODCTR /E:<Service-Name>
            enable the performance counter service.

        LODCTR /D:<Service-Name>
            disable the performance counter service.

        LODCTR /Q

        LODCTR /Q:<Service-Name>
            query the performance counter service information, either query all or s
    pecified one.

        LODCTR /M:<Counter-Manifest>
            install Windows Vista performance counter provider definition XML file
                to system repository.

    Note: any arguments with spaces in the names must be enclosed within

    Source http://blogs.technet.com/b/yongrhee/archive/2009/10/06/how-to-rebuild-performance-counters-on-windows-vista-server2008-7-server2008r2.aspx


    Knowledge is power.

    Thursday, January 24, 2013 6:44 PM
  • Still getting these errors and that article link is for rebuilding in 2003 not 2008.

    Knowledge is power.

    Friday, June 21, 2013 6:38 PM
  • I receive these errors in Windows Server 2012. I've searched high and low for a resolution.

    • Edited by gomer_pyle Tuesday, July 02, 2013 10:14 PM added pic
    Tuesday, July 02, 2013 10:11 PM
  • I have had the same issue. Everything I find is related to server 2003 and the above solutions I have tried do not work. The errors still continue.

    Knowledge is power.

    Friday, July 19, 2013 6:30 PM
  • Hey, some news ? I have the same issue in 2012 R2
    Thursday, September 18, 2014 2:27 PM