Registering a dll returns 0x80020009 error

26

I am trying to register with regsvr32.exe the prnadmin.dll (on a Win7 target machine) but i get this error 0x80020009

Any suggestions please?

dll
windows-7
asked on Stack Overflow Apr 28, 2010 by OrElse • edited Apr 28, 2010 by OrElse

7 Answers

60

regsvr32.exe needs to be run as an administrator. Maybe this was the cause?

answered on Stack Overflow Apr 28, 2010 by Daniel Renshaw
2

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.

answered on Stack Overflow Dec 27, 2011 by mohamed elsnousy
2

For Windows Vista/Windows 7 users: Click Start > All Programs > Accessories, then right-click on Command Prompt and select Run as Administrator.

answered on Stack Overflow Sep 13, 2012 by Hardik Manglani • edited Oct 6, 2012 by Steve Czetty
1

Best method I have found is to open the PowerShell ise with administration rights then cd to c:\ and insert your command, for example

regsvr32 "c:\Program Files\Windows Media Player\wmpband.dll"
answered on Stack Overflow Jan 10, 2015 by NiceAdviceMan • edited Jan 10, 2015 by Roope Hakulinen
0

For Windows Vista/Windows 7 users: Click Start > All Programs > Accessories, then right-click on Command Prompt and select Run as Administrator. Then type: regsvr32 filelocation\fileName Then you see that file which generate error is loadded successfully.

answered on Stack Overflow Jul 26, 2015 by Geeta Pal
0

I had a similar problem with our Office COM addin. Visual Studio 2019 could successfully build the C++ code, but the registration failed with the above error code.

Solution was: Some files had a "wrong" file encoding (UTF8-BOM) instead of (UTF8) and after I changed the file encodings everything worked as expected.

answered on Stack Overflow Oct 31, 2020 by Robert Muehsig
-3

http://support.microsoft.com/kb/2466246

You'll need to use the 32bit version of regsvr32 as mentioned in the article.

answered on Stack Overflow Jul 24, 2012 by Stoffel

User contributions licensed under CC BY-SA 3.0