none
How to use lodctr to resolve Event ID 1008 issue RRS feed

  • General discussion

  • Scenario
    Sometimes we will get this Event:
    Event ID 1008:
    “The Open Procedure for service "%1!s!" in DLL "%2!s!" failed. Performance data for this service will not be available. The first four bytes (DWORD) of the Data section contains the error code.”

    It indicates that the “Performance counter" of the specific service is corrupted.

    Solution

    According to following article, we could use “lodctr” to resolve this issue.
    https://technet.microsoft.com/en-us/library/cc774913%28v=ws.10%29.aspx?f=255&MSPPError=-2147217396

    See detailed guide here to use lodctr:

    First, try to use “lodctr /q” to list all the services` “Performance counter”. Check the related dll file corresponding to the service (Pay attention to the location).

    Second, use “/r” parameter to register the corresponding dll file.
    Note: The “/r” parameter would rebuild the perf registry strings and info using scratch based on the current registry key settings and backup INI files
    (We could use lodctr /? to check in this command). In this case, let’s register bitsperf.dll as example:

    Finally, If the issue still persists, it seems that the backup image may be corrupted. We could try to use the INI file to register the performance counter.

    Please locate to following registry key:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\BITS\Performance

    And you can find the INI file in value perfinifil:

    For those services have a performance counter, there is a sub registry key called “Performance”.

    Let’s find the ini files under C:\Windows\INF to get the full path.

    In this case:

    Then register them by using lodctr command:

    Regards,


    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    Tuesday, April 26, 2016 6:17 AM

All replies