Results 1 to 13 of 13

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,427

    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,929

    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,929

    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

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

    Re: DllRegisterServer failed with error code 0x80004005

    Thank you for the useful information that I'll save for future needs, but both methods failed with the same error. The dll was written in 32 bit so I suspect I have to rewrite it in 64 bit.

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

    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,929

    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
    PowerPoster
    Join Date
    Aug 2010
    Location
    Canada
    Posts
    2,412

    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: 1286
Size:  29.7 KB

  10. #10

  11. #11
    PowerPoster
    Join Date
    Aug 2010
    Location
    Canada
    Posts
    2,412

    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

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

    Re: DllRegisterServer failed with error code 0x80004005

    Quote Originally Posted by jpbro View Post
    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?
    Same error.

  13. #13
    New Member
    Join Date
    Oct 2022
    Posts
    1

    Re: DllRegisterServer failed with error code 0x80004005

    Hello, did you ever get this sorted, Martin?

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