none
RegSvr32 DllRegisterServer Failed

    Question

  • Hi there!

    Today I installed Windows 7 64 bits for tests. My company used to upgrade Windows as soon they release. We have a software developed to us that uses MailBee.dll for email module. I must use regsvr32 to register this DLL and it's not working.

    The module "MailBee.dll" was loaded but the call to DllRegisterServer failed   
    with error code 0x80020009.<BR><BR>For more information about this problem,   
    search online using the error code as search term.<BR> 

    Ok, I tryed to run regsvr32 in \SysWOW64 and neither work.

    Any ideas?

    Thank you so much
    Ricardo Unterkircher
    Tuesday, January 13, 2009 1:03 PM

Answers

  • Well, replying my question, I made it.

    I was trying to execute and register dll both from \SysWOW64. All I had to do was copied the dll to \System32 and execute regsvr32 from \SysWOW64.
    Eg. c:\windows\syswow64\regsvr32.exe c:\windows\system32\mailbee.dll.

    Thank you again.

    Ricardo Unterkircher
    Tuesday, January 13, 2009 1:38 PM

All replies

  • Well, replying my question, I made it.

    I was trying to execute and register dll both from \SysWOW64. All I had to do was copied the dll to \System32 and execute regsvr32 from \SysWOW64.
    Eg. c:\windows\syswow64\regsvr32.exe c:\windows\system32\mailbee.dll.

    Thank you again.

    Ricardo Unterkircher
    Tuesday, January 13, 2009 1:38 PM
  • Hi Ricardo,

         Congratulations on your success. Commendable.
         
         I am also facing the same error but, while running my application from the Visual Studio. I am running the instance of the Visual Studio as an "Administrator". 
         So, I was just curious to know that did you got the reason behind doing the solution that you applied ? This would hint me the direction in which to proceed.

         Please lemme know...

    Thanks and Regards,
    Abhishek.
    Tuesday, December 29, 2009 6:16 AM
  • I am able register dlls using regsvr32. However it is taking a long time. It take approximately 8s to register a dll as against to 1s in xp.
    Any clues.

    Thanks.
    Meghna
    Wednesday, December 30, 2009 9:18 PM
  • Muito bem explicado, aqui no Brasil muitos estão desinstalando o windows 7 64 bits e instalando o 32 Bits apenas por não conseguir registrar DLLs.

    Parabéns Congratulations
    Friday, February 26, 2010 6:06 PM
  • I do not see the folder c:\windows\SysWOW64 to execute this.

    Have similar problem. I am trying to register a DLL in Windows 7 and it ends up in a strange error as follows:

    The module "C:\2006\Tools\Web\Programs\ICESupport.dll" was loaded but the call to DllRegisterServer failed with error code 0x80004005.

    Microsoft help says i should be registering from syswow64 folder. but it does not exist!

    Sunday, September 19, 2010 9:01 AM
  • hi davekuls,

    The SysWOW64 is a folder which exists only in 64-bit OSs. Plz check the Windows 7 version, you installed, is 32-bit or 64-bit.

    If it's a 32-bit then SysWOW64 is not created.

    If it's 64-bit then SysWOW64 exists under $:\Windows\SysWOW64.


    Abhishek...
    Wednesday, December 08, 2010 5:49 AM
  • Hi Abhishek and Guys,

    The problem which i am facing is like this:

    1. As Davekuls mentioned the operating system is 32 bit.

    2. We go win32 directory and evoke regsv32 and the error appears 'call to Dllregisterserver failed'

    3. The same dll was getting registered on 32 bit XP and prior versions

    Please suggest, i have almost searched all internet websites for answer

    Friday, January 07, 2011 9:09 AM
  • to register a dll in windows 7 32bit you must use the run as administrator option on the command prompt.

    once elevated to admin access you can run your regsvr32 commandand it succeed.

    Tuesday, January 25, 2011 6:08 PM
  • Hi,
    You can try the following to resolve this issue.
    Restore file and registry security permissions to a known state.
    For Windows XP users:
    Download and unzip a small utility called Repair Permissions from http://djlizard.net/software/Repair%20Permissions.zip
    Locate the unzipped folder, and double-click the !RUNME file.
    The command prompt window will now open and will begin to restore the file and registry permissions to a known state, please be patient as the command can take some time to complete.
    Once the command has completed, try to register a dll file again.
    For Windows Vista/Windows 7 users:
    Click Start>All Programs>Accessories, then right-click on “Command Prompt” and select “Run as Administrator”
    Type in the following command exactly as you see it and press ENTER.
    secedit /configure /cfg %windir%\inf\defltbase.inf /db defltbase.sdb /verbose
    Wait for the command to complete, it can take some time so please be patient.
    Once the command has completed, try to register a dll file again.

    http://winostips.com
    Thursday, July 28, 2011 12:24 PM
  • the error Persist it says

    -------------------------------------------
    Monday, July 23, 2012 12:19:37 PM
    ----Configuration engine was initialized successfully.----

    ----Reading Configuration Template info...


    ----Configure User Rights...
      SeImpersonatePrivilege must be assigned to administrators. This setting is adjusted.
      SeImpersonatePrivilege must be assigned to SERVICE. This setting is adjusted.
     Configure S-1-5-21-389843261-3061327148-480473832-1001.
      remove SeBatchLogonRight.
     Configure S-1-5-19.
     Configure S-1-5-20.
     Configure S-1-5-32-544.
     Configure S-1-5-32-551.
     Configure S-1-5-32-559.
     Configure S-1-5-32-545.
     Configure S-1-1-0.
     Configure S-1-5-6.
     Configure S-1-5-21-389843261-3061327148-480473832-501.
     Configure S-1-5-32-555.
     Configure S-1-5-80-0.
     Configure S-1-5-80-3139157870-2983391045-3678747466-658725712-1809340420.

     User Rights configuration was completed successfully.


    ----Configure Group Membership...
     Configure Users.

     Group Membership configuration was completed successfully.


    ----Configure Registry Keys...
     Configure users\.default.
     Configure machine\software.
    Warning 1336: The access control list (ACL) structure is invalid.
      Error setting security on machine\software\Borland.

     Configuration of Registry Keys was completed with one or more errors.


    ----Configure File Security...
     Configure c:\program files\common files\speechengines\microsoft\tts.
    Warning 2: The system cannot find the file specified.
      Error setting security on c:\program files\common files\speechengines\microsoft\tts.
     Configure c:\programdata\microsoft\windows\drm.
     Configure c:\programdata\microsoft\windows\drm\cache.
     Configure c:\windows\repair\default.
    Warning 3: The system cannot find the path specified.
      Error setting security on c:\windows\repair\default.
     Configure c:\windows\repair\ntuser.dat.
    Warning 3: The system cannot find the path specified.
      Error setting security on c:\windows\repair\ntuser.dat.
     Configure c:\windows\repair\sam.
    Warning 3: The system cannot find the path specified.
      Error setting security on c:\windows\repair\sam.
     Configure c:\windows\repair\security.
    Warning 3: The system cannot find the path specified.
      Error setting security on c:\windows\repair\security.
     Configure c:\windows\repair\software.
    Warning 3: The system cannot find the path specified.
      Error setting security on c:\windows\repair\software.
     Configure c:\windows\repair\system.
    Warning 3: The system cannot find the path specified.
      Error setting security on c:\windows\repair\system.
     Configure c:\windows\system32\windows media.
    Warning 2: The system cannot find the file specified.
      Error setting security on c:\windows\system32\windows media.

     File Security configuration was completed successfully.


    ----Configure General Service Settings...
     Configure sysmonlog.
    Error 1060: The specified service does not exist as an installed service.
      Error opening sysmonlog.
     Configure SamSs.
     Configure ntmssvc.
    Error 1060: The specified service does not exist as an installed service.
      Error opening ntmssvc.
     Configure netddedsdm.
    Error 1060: The specified service does not exist as an installed service.
      Error opening netddedsdm.
     Configure netdde.
    Error 1060: The specified service does not exist as an installed service.
      Error opening netdde.
     Configure dmserver.
    Error 1060: The specified service does not exist as an installed service.
      Error opening dmserver.
     Configure clipsrv.
    Error 1060: The specified service does not exist as an installed service.
      Error opening clipsrv.
     Configure Browser.

     General Service configuration was completed successfully.


    ----Configure available attachment engines...

     Configuration of attachment engines was completed successfully.


    ----Configure Security Policy...
     Configure password information.
     Administrator account is disabled.
     Guest account is disabled.

     System Access configuration was completed successfully.
     LSA anonymous lookup names setting : existing SD = D:(D;;0x800;;;AN)(A;;0xf1fff;;;BA)(A;;0x20801;;;WD)(A;;0x801;;;AN)(A;;0x1000;;;LS)(A;;0x1000;;;NS)(A;;0x1000;;;S-1-5-17).
     Configure LSA anonymous lookup setting.
     Configure machine\software\microsoft\windows nt\currentversion\setup\recoveryconsole\securitylevel.
     Configure machine\software\microsoft\windows nt\currentversion\setup\recoveryconsole\setcommand.
     Configure machine\software\microsoft\windows nt\currentversion\winlogon\scremoveoption.
     Configure machine\software\microsoft\windows\currentversion\policies\system\dontdisplaylastusername.
     Configure machine\software\microsoft\windows\currentversion\policies\system\legalnoticecaption.
     Configure machine\software\microsoft\windows\currentversion\policies\system\legalnoticetext.
     Configure machine\software\microsoft\windows\currentversion\policies\system\scforceoption.
     Configure machine\software\microsoft\windows\currentversion\policies\system\shutdownwithoutlogon.
     Configure machine\software\microsoft\windows\currentversion\policies\system\undockwithoutlogon.
     Configure machine\software\policies\microsoft\windows\safer\codeidentifiers\authenticodeenabled.
     Configure machine\system\currentcontrolset\control\lsa\auditbaseobjects.
     Configure machine\system\currentcontrolset\control\lsa\crashonauditfail.
     Configure machine\system\currentcontrolset\control\lsa\disabledomaincreds.
     Configure machine\system\currentcontrolset\control\lsa\everyoneincludesanonymous.
     Configure machine\system\currentcontrolset\control\lsa\fipsalgorithmpolicy\enabled.
     Configure machine\system\currentcontrolset\control\lsa\forceguest.
     Configure machine\system\currentcontrolset\control\lsa\fullprivilegeauditing.
     Configure machine\system\currentcontrolset\control\lsa\nolmhash.
     Configure machine\system\currentcontrolset\control\lsa\restrictanonymous.
     Configure machine\system\currentcontrolset\control\lsa\restrictanonymoussam.
     Configure machine\system\currentcontrolset\control\print\providers\lanman print services\servers\addprinterdrivers.
     Configure machine\system\currentcontrolset\control\session manager\kernel\obcaseinsensitive.
     Configure machine\system\currentcontrolset\control\session manager\memory management\clearpagefileatshutdown.
     Configure machine\system\currentcontrolset\control\session manager\protectionmode.
     Configure machine\system\currentcontrolset\services\lanmanserver\parameters\autodisconnect.
     Configure machine\system\currentcontrolset\services\lanmanserver\parameters\enableforcedlogoff.
     Configure machine\system\currentcontrolset\services\lanmanserver\parameters\enablesecuritysignature.
     Configure machine\system\currentcontrolset\services\lanmanserver\parameters\requiresecuritysignature.
     Configure machine\system\currentcontrolset\services\lanmanserver\parameters\restrictnullsessaccess.
     Configure machine\system\currentcontrolset\services\lanmanworkstation\parameters\enableplaintextpassword.
     Configure machine\system\currentcontrolset\services\lanmanworkstation\parameters\enablesecuritysignature.
     Configure machine\system\currentcontrolset\services\lanmanworkstation\parameters\requiresecuritysignature.
     Configure machine\system\currentcontrolset\services\ldap\ldapclientintegrity.

     Configuration of Registry Values was completed successfully.
     Configure log settings.

     Audit/Log configuration was completed successfully.


    ----Configure available attachment engines...

     Configuration of attachment engines was completed successfully.


    ----Un-initialize configuration engine...


    • Edited by Karan Jain Monday, July 23, 2012 6:50 AM
    Monday, July 23, 2012 6:47 AM
  • Thanks for that hint! :)

    Unfortunately, I still have trouble with the SysWOW64 registry part, as I get error 5: Access is denied.

    Take a look at this log please?

    -------------------------------------------
    Thursday, January 03, 2013 3:10:19 AM
    ----Configuration engine was initialized successfully.----

    ----Reading Configuration Template info...


    ----Configure User Rights...
      SeImpersonatePrivilege must be assigned to administrators. This setting is adjusted.
      SeImpersonatePrivilege must be assigned to SERVICE. This setting is adjusted.
     Configure S-1-5-19.
     Configure S-1-5-20.
     Configure S-1-5-32-544.
     Configure S-1-5-32-551.
     Configure S-1-5-32-559.
     Configure S-1-5-32-545.
     Configure S-1-1-0.
     Configure S-1-5-6.
     Configure S-1-5-21-1207876150-3839655452-3125950711-501.
     Configure S-1-5-32-555.
     Configure S-1-5-80-0.
     Configure S-1-5-80-3139157870-2983391045-3678747466-658725712-1809340420.

     User Rights configuration was completed successfully.


    ----Configure Group Membership...
     Configure Users.

     Group Membership configuration was completed successfully.

    ----Configure 64-bit Registry Keys...
     Configure users\.default.
     Configure machine\software.
     Configure machine\software\classes.
    Warning 5: Access is denied.
      Error setting security on machine\software\classes.
    Warning 5: Access is denied.
      Error setting security on machine\software\classes.
    Warning 5: Access is denied.
      Error setting security on machine\software\classes.
    Warning 5: Access is denied.
      Error setting security on machine\software\classes.
    Warning 5: Access is denied.
      Error setting security on machine\software\classes.
    Warning 5: Access is denied.
    ...
      Error setting security on machine\software\classes.
     Configure machine\software\classes\.hlp.
    Warning 5: Access is denied.
      Error setting security on machine\software\microsoft.
    Warning 5: Access is denied.
    ...

      Error setting security on machine\software\microsoft.
     Configure machine\software\microsoft\drm.
    Warning 5: Access is denied.
      Error setting security on machine\software\microsoft\windows.
    Warning 5: Access is denied.
      Error setting security on machine\software\microsoft\windows.
    Warning 5: Access is denied.
      Error setting security on machine\software\microsoft\windows\currentversion.
    Warning 5: Access is denied.
      Error setting security on machine\software\microsoft\windows\currentversion.
    Warning 5: Access is denied.
      Error setting security on machine\software\microsoft\windows\currentversion.
     Configure machine\system.
    Warning 5: Access is denied.
      Error setting security on machine\system\currentcontrolset\control.
    Warning 5: Access is denied.
      Error setting security on machine\system\currentcontrolset\control.
    Warning 5: Access is denied.
      Error setting security on machine\system\currentcontrolset\control.
    Warning 5: Access is denied.
      Error setting security on machine\system\currentcontrolset\control.
    Warning 5: Access is denied.
      Error setting security on machine\system\currentcontrolset\control.
    Warning 5: Access is denied.
      Error setting security on machine\system\currentcontrolset\control.
     Configure machine\system\currentcontrolset\control\class.
     Configure machine\system\currentcontrolset\control\keyboard layouts.
    Warning 5: Access is denied.
      Error setting security on machine\system\currentcontrolset\control\lsa.
     Configure machine\system\currentcontrolset\control\lsa\data.
     Configure machine\system\currentcontrolset\control\lsa\gbg.
     Configure machine\system\currentcontrolset\control\lsa\jd.
     Configure machine\system\currentcontrolset\control\lsa\skew1.
     Configure machine\system\currentcontrolset\control\nsi.
     Configure machine\system\currentcontrolset\control\nsi\{eb004a00-9b1a-11d4-9123-0050047759bc}\4.
     Configure machine\system\currentcontrolset\control\nsi\{eb004a01-9b1a-11d4-9123-0050047759bc}\4.
     Configure machine\system\currentcontrolset\control\nsi\{eb004a1c-9b1a-11d4-9123-0050047759bc}\0.
     Configure machine\system\currentcontrolset\control\wmi\security.
    Warning 2: The system cannot find the file specified.
      Error enumerating info for machine\system\currentcontrolset\services\appmgmt.
     Configure machine\system\currentcontrolset\services\scardsvr\security.
     Configure machine\system\currentcontrolset\services\stisvc\security.
    Warning 2: The system cannot find the file specified.
      Error enumerating info for machine\system\currentcontrolset\services\sysmonlog.

     Configuration of Registry Keys was completed successfully.

    ----Configure 32-bit Registry Keys...
     Configure machine\software.
     Configure machine\software\classes.
    Warning 5: Access is denied.
      Error setting security on machine\software\classes.
    Warning 5: Access is denied.
    ...

      Error setting security on machine\software\classes.
     Configure machine\software\classes\.hlp.
    Warning 5: Access is denied.
      Error setting security on machine\software\microsoft.
    Warning 5: Access is denied.
      Error setting security on machine\software\microsoft.
    Warning 5: Access is denied.
      Error setting security on machine\software\microsoft.
    Warning 5: Access is denied.
      Error setting security on machine\software\microsoft.
     Configure machine\software\microsoft\drm.
    Warning 5: Access is denied.
      Error setting security on machine\software\microsoft\windows.
    Warning 5: Access is denied.
      Error setting security on machine\software\microsoft\windows.
    Warning 5: Access is denied.
      Error setting security on machine\software\microsoft\windows\currentversion.
    Warning 5: Access is denied.
      Error setting security on machine\software\microsoft\windows\currentversion.

     Configuration of Registry Keys was completed successfully.


    ----Configure File Security...
     Configure c:\program files (x86)\common files\speechengines\microsoft\tts.
    Warning 2: The system cannot find the file specified.
      Error setting security on c:\program files (x86)\common files\speechengines\microsoft\tts.
     Configure c:\programdata\microsoft\windows\drm.
     Configure c:\programdata\microsoft\windows\drm\cache.
     Configure c:\windows\repair\default.
    Warning 3: The system cannot find the path specified.
      Error setting security on c:\windows\repair\default.
     Configure c:\windows\repair\ntuser.dat.
    Warning 3: The system cannot find the path specified.
      Error setting security on c:\windows\repair\ntuser.dat.
     Configure c:\windows\repair\sam.
    Warning 3: The system cannot find the path specified.
      Error setting security on c:\windows\repair\sam.
     Configure c:\windows\repair\security.
    Warning 3: The system cannot find the path specified.
      Error setting security on c:\windows\repair\security.
     Configure c:\windows\repair\software.
    Warning 3: The system cannot find the path specified.
      Error setting security on c:\windows\repair\software.
     Configure c:\windows\repair\system.
    Warning 3: The system cannot find the path specified.
      Error setting security on c:\windows\repair\system.
     Configure c:\windows\system32\windows media.
    Warning 2: The system cannot find the file specified.
      Error setting security on c:\windows\system32\windows media.
     Configure c:\windows\syswow64\export.
    Warning 2: The system cannot find the file specified.
      Error setting security on c:\windows\syswow64\export.
     Configure c:\windows\syswow64\ias.
    Warning 2: The system cannot find the file specified.
      Error setting security on c:\windows\syswow64\ias.

     File Security configuration was completed successfully.


    ----Configure General Service Settings...
     Configure sysmonlog.
    Error 1060: The specified service does not exist as an installed service.
      Error opening sysmonlog.
     Configure SamSs.
     Configure ntmssvc.
    Error 1060: The specified service does not exist as an installed service.
      Error opening ntmssvc.
     Configure netddedsdm.
    Error 1060: The specified service does not exist as an installed service.
      Error opening netddedsdm.
     Configure netdde.
    Error 1060: The specified service does not exist as an installed service.
      Error opening netdde.
     Configure dmserver.
    Error 1060: The specified service does not exist as an installed service.
      Error opening dmserver.
     Configure clipsrv.
    Error 1060: The specified service does not exist as an installed service.
      Error opening clipsrv.
     Configure Browser.

     General Service configuration was completed successfully.


    ----Configure available attachment engines...

     Configuration of attachment engines was completed successfully.


    ----Configure Security Policy...
     Configure password information.
     Administrator account is disabled.
     Guest account is disabled.

     System Access configuration was completed successfully.
     LSA anonymous lookup names setting : existing SD = D:(D;;0x800;;;AN)(A;;0xf1fff;;;BA)(A;;0x20801;;;WD)(A;;0x801;;;AN)(A;;0x1000;;;LS)(A;;0x1000;;;NS)(A;;0x1000;;;S-1-5-17).
     Configure LSA anonymous lookup setting.
     Configure machine\software\microsoft\windows nt\currentversion\setup\recoveryconsole\securitylevel.
     Configure machine\software\microsoft\windows nt\currentversion\setup\recoveryconsole\setcommand.
     Configure machine\software\microsoft\windows nt\currentversion\winlogon\scremoveoption.
     Configure machine\software\microsoft\windows\currentversion\policies\system\dontdisplaylastusername.
     Configure machine\software\microsoft\windows\currentversion\policies\system\legalnoticecaption.
     Configure machine\software\microsoft\windows\currentversion\policies\system\legalnoticetext.
     Configure machine\software\microsoft\windows\currentversion\policies\system\scforceoption.
     Configure machine\software\microsoft\windows\currentversion\policies\system\shutdownwithoutlogon.
     Configure machine\software\microsoft\windows\currentversion\policies\system\undockwithoutlogon.
     Configure machine\software\policies\microsoft\windows\safer\codeidentifiers\authenticodeenabled.
     Configure machine\system\currentcontrolset\control\lsa\auditbaseobjects.
     Configure machine\system\currentcontrolset\control\lsa\crashonauditfail.
     Configure machine\system\currentcontrolset\control\lsa\disabledomaincreds.
     Configure machine\system\currentcontrolset\control\lsa\everyoneincludesanonymous.
     Configure machine\system\currentcontrolset\control\lsa\fipsalgorithmpolicy\enabled.
     Configure machine\system\currentcontrolset\control\lsa\forceguest.
     Configure machine\system\currentcontrolset\control\lsa\fullprivilegeauditing.
     Configure machine\system\currentcontrolset\control\lsa\nolmhash.
     Configure machine\system\currentcontrolset\control\lsa\restrictanonymous.
     Configure machine\system\currentcontrolset\control\lsa\restrictanonymoussam.
     Configure machine\system\currentcontrolset\control\print\providers\lanman print services\servers\addprinterdrivers.
     Configure machine\system\currentcontrolset\control\session manager\kernel\obcaseinsensitive.
     Configure machine\system\currentcontrolset\control\session manager\memory management\clearpagefileatshutdown.
     Configure machine\system\currentcontrolset\control\session manager\protectionmode.
     Configure machine\system\currentcontrolset\services\lanmanserver\parameters\autodisconnect.
     Configure machine\system\currentcontrolset\services\lanmanserver\parameters\enableforcedlogoff.
     Configure machine\system\currentcontrolset\services\lanmanserver\parameters\enablesecuritysignature.
     Configure machine\system\currentcontrolset\services\lanmanserver\parameters\requiresecuritysignature.
     Configure machine\system\currentcontrolset\services\lanmanserver\parameters\restrictnullsessaccess.
     Configure machine\system\currentcontrolset\services\lanmanworkstation\parameters\enableplaintextpassword.
     Configure machine\system\currentcontrolset\services\lanmanworkstation\parameters\enablesecuritysignature.
     Configure machine\system\currentcontrolset\services\lanmanworkstation\parameters\requiresecuritysignature.
     Configure machine\system\currentcontrolset\services\ldap\ldapclientintegrity.

     Configuration of Registry Values was completed successfully.
     Configure log settings.

     Audit/Log configuration was completed successfully.


    ----Configure available attachment engines...

     Configuration of attachment engines was completed successfully.


    ----Un-initialize configuration engine...

    Windows 7 Home Basic 64 bits version, preinstalled.

    Acer Aspire 4752ZG laptop.

    • Edited by Jan Guldvog Wednesday, January 02, 2013 7:24 PM Forgot Windows version and laptop brand.
    Wednesday, January 02, 2013 7:22 PM
  • a.    Click on Start; in the start search type regedit and press Enter.

    b.    If you receive User account control prompt, click on Yes.

     c.    Go to Registry Editor (regedit) and to key HKEY_CLASSES_ROOT\TypeLib

     d.    Right click on TypeLib and select Permissions and go to the Security tab

     e.    Find out if your username is listed in the list of users, if so make sure you’ve
    Full Control

     f.     If not click on Add and type in the username. Once added make sure the user has Full Control.

     g.    Apply changes and close the registry editor.

     Now try registering dll files.

    Thursday, July 18, 2013 7:04 AM