Fix event error 1020 and 1008 Microsoft-Windows-Perflib Error

Users sometimes start seeing an event error 1020 & 1008 Microsoft-Windows-Perflib error in Windows 10 for no apparent reason. More importantly, they have no idea how to fix it. The error message looks like this:

1]Event: 1008

The procedure to open service “.NETFramework” in DLL “C:WINDOWSsystem32mscoree.dll” failed with error code The system cannot find the file specified. Performance data for this service will not be available.

2]Event: 1020

You may also be interested in:

The required buffer size is larger than the buffer size passed to the Collect function of the extensible counter DLL ‘C:WindowsSystem32perfts.dll’ for service ‘LSM’. The given buffer size was 34184 and the required size was 43160.

Fixing this problem requires a bit of work. Follow the instructions below to fix it, after creating a system restore point.

Event Error 1020 or 1008 Microsoft-Windows-Perflib Error

Error events 1020 and 1008 are reported because a counter list is corrupted and a required DLL is disabled. When the performance counter fails to download strings for the specified service, the registry may become corrupted and display error 1020. To resolve this issue, rebuild the list of performance counters.

  1. Click Start.
  2. Type CMD in the search bar.
  3. Right-click Command Prompt.
  4. Choose Run as administrator.
  5. Enter the following command and press the Enter key– CD %SYSTEMROOT%System32
  6. At the command prompt, type lodctr /r.
  7. Press Enter.
  8. Similarly for the 1008 error, type lodctr /e:<DLL name> then press ENTER.

Note that membership in the local administrators group is required to complete this procedure. To rebuild the list of counters in the registry, follow these steps.

Click the Windows 10 Start button.

In the search box that appears, type CMD or Command Prompt.

When the option is visible, right-click on it and select Execute as an administrator option.

Rebuilt performance counter

Now, in the Command Prompt window that appears on your screen, enter the following command and press the Enter key: cd %SYSTEMROOT%System32.

Enter the following command again and hit the Enter key – lodctr /r.

Similarly, the 1008 Microsoft-Windows-Perflib error occurs when the required DLL is disabled. To fix the problem, type lodctr /e:</<DLL name> then press ENTER (replaces with the library file name).

I hope this has helped.

Microsoft Windows Perflib Error

How useful did you find this content?

Click on a star to rate!

Average score 0 / 5. Counting of votes: 0

So far, no votes. Be the first to rate this content.

I'm sorry this content was not useful for you!

Let me improve this content!

Tell me, how can I improve this content?

You may also be interested in:

Deja un comentario