Users sometimes begin to see Event error 1020 & 1008 Microsoft-Windows-Perflib error in Windows 10 for no apparent reason. More importantly, they have no idea to repair it. The error message looks something like this –
1] Event: 1008
The Open Procedure for service “.NETFramework” in DLL “C:\WINDOWS\system32\mscoree.dll” failed with error code The system cannot find the file specified. Performance data for this service will not be available.
2] Event: 1020
The required buffer size is greater than the buffer size passed to the Collect function of the “C:\Windows\System32\perfts.dll” Extensible Counter DLL for the “LSM” service. The given buffer size was 34184 and the required size was 43160.
Resolving this issue requires a bit of work. Follow the instructions given below to fix it – after you have created a system restore point.
Event Error 1020 or 1008 Microsoft-Windows-Perflib error
Error event 1020 and 1008 are being reported because a list of counters is corrupt and a required DLL is disabled. When the performance counter cannot unload the strings for the specified service, the registry might get corrupted and show Error 1020. To fix this issue, rebuild the list of performance counters.
- Click Start.
- Type CMD in the search bar.
- Right-click Command Prompt.
- Choose Run as administrator.
- Enter the following command and hit Enter key–
- At the command prompt, type
- Press ENTER.
- 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.
Click on the Windows 10 Start button.
In the Search box that appears, type CMD or Command Prompt.
When the option is seen, right-click it and select Run as administrator option.
Now, in the Command Prompt window that appears on your screen, enter the following command and hit Enter key –
Again enter the following command and hit Enter key –
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).
Hope this helped.
- Tags: Troubleshoot