5 Ways to Fix Event Error 1020 & 1008 Microsoft-Windows-Perflib Error on Windows 10/11

windows laptop
Quick Fix

Click to download Outbyte PC Repair and discover its benefits for your Windows system.

Designed for Windows 10 and 11.

Take advantage of our special offer to enhance your PC performance. For more details, please read About Outbyte, and Uninstall Instructions. Also, please review our End User License Agreement (EULA) and Privacy Policy.

Windows 10/11 presents numerous impressive features that enhance the overall Windows experience. It is composed of interconnected subsystems that work in harmony to deliver an intuitive platform catering to all your computer requirements.

However, several users have recently reported getting the event error 1020 & 1008 Microsoft-Windows-Perflib error on Windows 10/11, preventing them from running the affected application and affecting their computer’s performance.

According to the complaints, the error appears for no apparent reason. There is no indication that there is something wrong before the error pops up, like the computer freezing up or the apps crashing. The error just appears suddenly.

More importantly, there is not much online resource to turn to on how to fix the Event Error 1020 & 1008 Microsoft-Windows-Perflib error on Windows 10/11. This error has left a lot of affected Windows users frustrated and confused, not knowing how to deal with this error.

Expert Tip: For smoother PC performance, consider using a PC optimization tool. It handles junk files, incorrect settings, and harmful apps. Make sure it's right for your system, and always check the EULA and Privacy Policy.

Free Scan for PC Issues
Compatible with: Windows 10/11, Windows 7, Windows 8

Special offer. About Outbyte, uninstall instructions, EULA, Privacy Policy.

So if you encounter this error all of a sudden and you don’t know what to do, this guide should be a great help.

What is Event Error 1020 & 1008 Microsoft-Windows-Perflib Error

Don’t be confused. These are two different errors: event error 1020 and event error 1008. But they usually happen at the same time and the circumstances surrounding these errors are basically the same.

Here is the error message you might encounter for event error 1008:

Source: Perflib
Category: None
Type: Error
Event ID: 1008

The open procedure for the service “.NETFramework” in the DLL “C: WINDOWS system32 mscoree.dll” failed with the error code. The system can not find the stated file. Performance data for this service is not available.

Here is the error message you might encounter for event error 1020:

Source: Perflib
Category: None
Type: Error
Event ID: 1008

The required buffer size is larger than the buffer size transferred to the collect function of the expandable counter DLL “C: Windows System32 perfts.dll” for the service “LSM”. The reported buffer size was 34184 and the required size was 43160.

These errors can happen with any other file, not just mscoree.dll. It can also happen when the error is encountered when running a performance check on other DLL files.

In the above message, it means that the system can’t find the mscoree.dll. When the user tried to find the file using the odctr /r in Powershell (as admin), a message appears saying that mscoree.dll was replaced from a backup. When running the lodctr /q command to list repairs, mscoree.dll was even listed. However, the error still appears after doing the above troubleshooting.

The affected users noted that apart from these errors appearing in the Event Viewer, they didn’t notice anything strange with the computer; Everything was working like it should, so users had no idea what this could be causing them and what wasn’t working as they should.

However, when you get any of these errors, you don’t have to worry because this error itself isn’t a big deal. It is just Windows’ way of saying that it can’t collect performance data. That is the easy part. Getting rid of the errors is a whole different story.

What Causes Event Error 1020 & 1008 Microsoft-Windows-Perflib Error?

As mentioned earlier, these event errors may occur for various applications. When the performance monitor reads all counters for the first time, the extension’s Open Procedure is called.

A typical task for the Open procedure is to read what range of object indexes it supports from the registry. These index values are stored in the First Counter, First Help, Last Counter, and Last Help registry values under the application’s performance key.

If this Open procedure fails to read the data (i.e. those entries don’t exist or have been deleted by an uninstall procedure) the 1008 or 1020 event is recorded in the event log.

Error event 1020 and 1008 usually occurs because a list of counters is corrupted and a required DLL has been disabled. When the performance counter fails to unload the strings for the specified service, the registry might get corrupted and show these perflib errors.

How to Fix Event Error 1020 & 1008 Microsoft-Windows-Perflib Error

Although this error might not be critical to your Windows system, it can be annoying getting the notifications so you might want to deal with it using the solutions below.

Fix #1: Restart your computer.

The first step to fixing any error is to reboot the system. It is usually effective in resolving temporary glitches on your computer. Press the Power button, then wait for a few minutes before starting it again. You can also try booting into Safe Mode to see if the error is related to third-party software.

Fix #2: Remove corrupted files.

Another basic troubleshooting step involves running the SFC command in Command Prompt to check for corrupted files on your computer. This tool automatically fixes or replaces corrupted files to resolve any error you might be experiencing. It is also recommended to clean up your system using Outbyte PC Repair to prevent further errors from popping up.

Fix #3: Edit the Registry.

In order to remove such orphaned entries typically one has to follow these steps:

  1. Start Registry Editor (Regedt32.exe or Regedit.exe)and go to the following subkey:
  2. HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\<service name>:\Performance
  3. Delete the value ” Open.”
  4. Restart your computer for this change to take effect.

Fix #4: Rebuild Performance Counters.

To fix 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 hit Enter key– CD %SYSTEMROOT%\System32
  6. At the command prompt, type lodctr /r.
  7. Press Enter.
  8. Similarly, for error 1008, type lodctr /e:<DLL name> and then press Enter.

Please note that the Membership in the local Administrators group is required to complete this procedure. To rebuild the list of counters in the registry do the following.

  1. Click on the Windows 10/11 Start button.
  2. In the Search box that appears, type CMD or Command Prompt.
  3. When the option is seen, right-click it and select Run as administrator option.
  4. Now, in the Command Prompt window that appears on your screen, enter the following command and hit Enter key – cd %SYSTEMROOT%\System32.
  5. Again enter the following command and hit Enter key – lodctr /r.

Fix #5: Re-enable the DLL.

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

To disable one or more extensible counter DLL(s):

  1. Start the Registry Editor (RegEdt32.exe).
  2. Navigate to the following registry subtree:
    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services
  3. Click Find Key on the View menu.
  4. Type Performance as the search string, then search down from there.
  5. At each Performance entry you find, select the Library value and modify the library name by prefixing it with two x”s: for example, change OrigLib.dll to xxOrigLib.dll
  6. When you have done each Performance entry under the CurrentControlSet \Services key, restart Perfmon to see whether it works. If it does, then repeat the above two steps, only restoring the original library name and trying Perfmon after each change to see which library causes the fault.

Wrapping Up

Getting the Event Error 1020 & 1008 Microsoft-Windows-Perflib error on Windows 10/11 is annoying but it is not a critical error. If you do not need the performance counters for the service mentioned in the event you can disable them using the exctrlst.exe tool (Extensible Performance Counter List). However, this is only a workaround so that you won’t get these notifications. If you really want to resolve these errors, refer to our troubleshooting guide above.

Give us some love and rate our post!
[Total: 0 Average: 0]
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
Featured Stories
How To Run Programs As Administrator in Windows
The PhoneExperienceHost.exe and YourPhone.exe Processes
How to Update UEFI BIOS in Windows: A Step-By-Step Guide
How to Remove Bing from Microsoft Edge: Simple Guide
Windows 10: How to Use Multiple Desktops
A Comprehensive Guide to Using MSConfig for System Configuration and Troubleshooting
How to Fix Copy and Paste Not Working in Windows 10
‘Getting Windows Ready’ Stuck: How to Fix
Resetting Your Windows 11 PC to Factory Defaults