Results 1 to 12 of 12

Thread: DllRegisterServer failed with error code 0x80004005

  1. #1

    Thread Starter
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,251

    DllRegisterServer failed with error code 0x80004005

    I'm fairly new to Windows 10 and I'm trying to register a dll for the first time. When I go to the Cmd prompt and enter regsvr32 C:\My.dll I get the error shown in the Title of this question. I am an Administrator so what could be wrong?

  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,748

    Re: DllRegisterServer failed with error code 0x80004005

    If you are using a 64-bit version of Windows and the dll is 32-bit, you need to use the version of regsvr32 in the windows/syswow64 folder

  3. #3

  4. #4
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,748

    Re: DllRegisterServer failed with error code 0x80004005

    If you are using command prompt, you can do it like this:
    Code:
    cd c:\windows\syswow64
    regsvr32.exe "c:\PathToDll\dllname.dll"
    ...or:
    Code:
    c:\windows\syswow64\regsvr32.exe "c:\PathToDll\dllname.dll"

  5. #5

  6. #6
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,748

    Re: DllRegisterServer failed with error code 0x80004005

    Another potential issue is that for this you should run command prompt as an admin (it doesn't happen automatically, even if you user is an admin).

    To do that, right-click on the link to command prompt and select "run as administrator".

  7. #7

  8. #8
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,748

    Re: DllRegisterServer failed with error code 0x80004005

    Near the bottom of that programs list should be a folder called "Windows System", and Command Prompt should be in there.

  9. #9
    Frenzied Member
    Join Date
    Aug 2010
    Location
    Canada
    Posts
    1,895

    Re: DllRegisterServer failed with error code 0x80004005

    After opening the Start menu start typing "command prompt". It should appear in the list of search results. Click "Run as administrator" in the pane on the right-hand side.

    Name:  CommandPrompt.jpg
Views: 23
Size:  29.7 KB

  10. #10

  11. #11
    Frenzied Member
    Join Date
    Aug 2010
    Location
    Canada
    Posts
    1,895

    Re: DllRegisterServer failed with error code 0x80004005

    One last idea - what if you try to register My.dll from a subfolder of C:\ instead of the bare root C:\ that you are currently using?

  12. #12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width