Share via


Windows cannot load the extensible counter DLL "C:\WINDOWS\system32\sysmain.dll" (Win32 error code The specified module could not be found.).

Question

Thursday, April 4, 2019 4:23 PM

Windows 10 1809

Windows cannot load the extensible counter DLL "C:\WINDOWS\system32\sysmain.dll" (Win32 error code The specified module could not be found.).

All replies (12)

Friday, April 5, 2019 5:02 AM

Hi,

This means that you either do not have the correct DLL or are missing a DLL (sysmain.dll).

So we’d better copy this dll file from other same system version machine and paste it to this machine to replace sysmain.dll. The file location is C:\WINDOWS\system32\sysmain.dll.

Then we could use command to registry this dll file.

How to Register a DLL File in Windows

https://helpdeskgeek.com/how-to/register-dll-file-in-windows/

Please Note: Since the website is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.

Hope it could be helpful

Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected].


Wednesday, April 10, 2019 8:16 AM

Hi,

Haven't received your message a few days, was your issue resolved?
I am proposing previous helpful replies as "Answered". Please feel free to try it and let me know the result. If the reply is helpful, please remember to mark it as answer which can help other community members who have same questions and find the helpful reply quickly.
Best regards,
Carl

Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected].


Wednesday, September 25, 2019 6:39 PM

Carl,

I have similar issue. I checked the sysmain.dll and it is present in the system32 folder and properly registered.

Any other ideas what can cause this issue?

Mark


Tuesday, October 8, 2019 9:13 PM

Same here, I also have sysmain.dll present in the system32 folder and get the same error error:

Log Name:      Application
Source:        Microsoft-Windows-Perflib
Date:          10/8/2019 6:58:39 AM
Event ID:      1023
Task Category: None
Level:         Error
Keywords:     
User:          SYSTEM
Computer:      DESKTOP-1L3CUFT
Description:
Windows cannot load the extensible counter DLL "C:\WINDOWS\system32\sysmain.dll" (Win32 error code The specified module could not be found.).
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Microsoft-Windows-Perflib" Guid="{13b197bd-7cee-4b4e-8dd0-59314ce374ce}" />
    <EventID>1023</EventID>
    <Version>1</Version>
    <Level>2</Level>
    <Task>0</Task>
    <Opcode>0</Opcode>
    <Keywords>0x8000000000000000</Keywords>
    <TimeCreated SystemTime="2019-10-08T14:58:39.281715300Z" />
    <EventRecordID>2175</EventRecordID>
    <Correlation />
    <Execution ProcessID="10508" ThreadID="9824" />
    <Channel>Application</Channel>
    <Computer>DESKTOP-1L1BUTF</Computer>
    <Security UserID="S-1-5-18" />
  </System>
  <EventData>
    <Data Name="Library">C:\WINDOWS\system32\sysmain.dll</Data>
    <Data Name="Win32Error">126</Data>
  </EventData>
</Event>


Sunday, November 3, 2019 6:36 PM

The same for me! Any news on this problem?


Tuesday, November 5, 2019 1:49 AM | 1 vote

Same here, I've change my GPU for a 5700 XT and reinstall Windows, since I got these error.


Wednesday, November 6, 2019 5:00 PM | 1 vote

It's been half a year and still no answer from Microsoft?? What's the point of this forum then?

I have the same problem and yes these files are present on my system. Chkdsk c: /f didn't find anything interesting to fix


Saturday, November 9, 2019 9:56 AM | 1 vote

Carl,

I have similar issue. I checked the sysmain.dll and it is present in the system32 folder and properly registered.

Any other ideas what can cause this issue?

Mark

Same here...


Thursday, December 12, 2019 9:43 PM

I would look for a permissions issue. What does the ACL on the file look like?


Tuesday, January 7, 2020 7:02 PM

Same problem here, on multiple machines. The answer provided so far - to add/replace sysmain.dll, is useless. All the machines have the same (up to date) version of the DLL. They also all have Office 2016 installed; any relation? I have a server that doesn't have Office, but does have SQL Server - it has the same error code but for a different module.  It appears that the error is related to the installation of Microsoft apps.  Anyone???

David Silberberg


Friday, January 17, 2020 3:37 AM

URL to Knowledge Article http://kb.eventtracker.com/evtpass/evtpages/EventId_1023_Microsoft-Windows-Perflib_67502.asp

Cause :
The list of counters is corrupt
If the performance counter could not unload the strings for the specified service, the registry might be corrupted.
Resolution :
Rebuild the list of performance counters
Membership in the local Administrators group is required to complete this procedure.
To rebuild the list of counters in the registry:

  1. Click Start, expand All Programs, and expand Accessories.
  2. Right-click Command Prompt, and then click Run as administrator.
  3. At the command prompt, type lodctr /r, and then press ENTER.

Cause :
A required DLL is disabled
Resolution :
Re-enable a required DLL
Membership in the local Administrators group is required to complete this procedure.
To enable a performance library DLL:

  1. Click Start, click All Programs, and then click Accessories.
  2. Right-click Command Prompt, and then click Run as administrator.
  3. At the command prompt, type lodctr /e:<DLL name> and then press ENTER, where <DLL name> is the name of the library.

Monday, April 27, 2020 6:23 PM

Is this a 32-bit DLL? if so, copy to the %systemroot%\SysWoW64\ folder, where 32-bit DLL should be placed.