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. 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 – cd %SYSTEMROOT%\System32.
Again enter the following command and hit Enter key – lodctr /r.
Similarly, 1008 Microsoft-Windows-Perflib error occurs when the required DLL is disabled. To resolve the issue, type lodctr /e:</