DllRegisterServer failed with the error code 0x80040201


 

Issue: Often when you try to register a DLL on Win7 or windows server 2008, you run into an error

     “The module scmt.dll was loaded but the call to DllRegisterServer failed with the error code 0x80040201”

 

Why:  UAC (user account control) limits the ability to register the DLL. so you have to run the command on elevated command prompt using Admin role.

 

Fix: Run the command in an elevated mode

   1. Click on Start button > type Command Prompt > (right click command prompt and click run as Administrator)

   2. Deregister the DLL using the following command 

                         cmd> “regsvr32 /u scmt.dll”

   3. Reregister the DLL using the command

                         cmd > “regsvr32 scmt.dll”

   you will get the below dialog box.

         

                      

 

 

Comments (27)

  1. iqbal says:

    koi b file register nhi ho rhi ye error ajata hn

  2. sharmila kadam says:

    its not geting registered in as administrator also

  3. Raphael says:

    Thank you ! It's working now.

  4. Rajakedar says:

    Iqbal and Sharmila – please start the process clean.

    try the commands in reverse order..

  5. erdal says:

    Where is scmt.dll ? I couldn't find it so I don't run regsvr32..

    C:windowssystem32…..

  6. Rajakedar says:

    hi erdal – scmt is an example DLL…. it can take any name.. please check the error message you are getting and you will know which DLL to work on…

  7. sumi says:

    The module ".spr32x30.ocx" was loaded but the call to dll register server failed with error code 0x80040201

  8. Rajakedar says:

    Sumi – the key is to do it the right way.

    I was also facing issues like you had but once I launched cmd prompt in Admin mode it works.

  9. Jan says:

    Super tip! Helped me greatly! Thanks a ton from Germany!

  10. Tomaž says:

    Thanks it works also in 64-bit system.

  11. Ruchir says:

    Hi, i try to register agentclt.dll in  window 8 32 bit but i got the error "the model agentctl.dll was loaded but the call to Dllregisterserver failed with error code 0x80040201". I also try to register with command prompt with admin account. but got same error. Please help me!!

    Thanks in advance

  12. Ruchir says:

    I also try reverse process . First uninstall the DLL and then register but i get same error.

  13. Ruchir says:

    Hi, I have the same issue and i also ask this some time before but i not get any answer and advices. What can i do? so i ask again this question. Please help me it is urgent.

    i try to register agentclt.dll in  window 8 32 bit but i got the error "the model agentctl.dll was loaded but the call to Dllregisterserver failed with error code 0x80040201". I also try to register with command prompt with admin account. But got the same error. Please help me!!

    Thanks in advance

  14. unknown says:

    great, its working, thanks

  15. Rajakedar says:

    ruchir – try switching off UAC.

  16. Upul says:

    Hi,

    I can not register imgthumb.ocx. It will display the following message.

    The module "imgthumb.ocx" failed to load.

    Make sure the binary is stored at the specified path or debug it to check for problems with the binary or dependent .DLL files.

    The specified module could not be found.

    What will be the reason and how can I register it.

    Thanks,

  17. TheGeniusKiller says:

    http://prntscr.com/377kj2 it says it was registered but could not find entry point DllRegisterServer

  18. vishal says:

    dll got resisted but still application is not working

  19. Bar says:

    You are The Best!

  20. Malik says:

    some time its very bad he cnt working properly

  21. Daws says:

    Okay, what do I do now? Restart the computer?

  22. Jordon says:

    I got this error when I was making an Engineer account,  help?

  23. Jordon says:

    Also my computerbkeeps spamming me about a Trojan and gave me a phone number.  I sat on hold for an hour…

  24. amy says:

    I entered cmd> "regsvr32 /u scmt.dll" but the system cannot find the path specified. Any suggestions?

  25. Larry says:

    '"resvr32 scmt.dll"' us not recognized

  26. miasherie penn says:

    i was tryimg to get on kik and login on my  computer and the the b;ue page popped up

  27. Judy Meaux says:

    I was only typing in a search when this error message popped up & at the same time there was a verbal message saying I had a Virus that infected my Window Firewall .   Virus Rootkit.Sirefef.Spy & Trojan virus found in System 32 NT.  Virus Source:  Free Games, Porn Website & 3rd Party Internet.    It instructed me to call 1-888-834-1353 to get instructions to fix it.   The site that sent the message was:  www.computerworking.com.

    I immediately shut down my computer & have not turned it back on. My attempts to shut down did not work until i did control alt/delete.   i started to call until I saw the website address & decided to see if I could some info 1st.  What do I need to do now.  Do I use the instructions above to get rid of this problem? What if the message occurs again before I can finish the instructions above?