DllRegisterServer returns 0x80020009 when trying to register a dll
When I try to run the command: "regsvr32 dllname.dll" for a specific dll, I get a popup with an error message saying that DllRegisterServer returned 0x80020009. I've googled all over the Internet, and come up with 2 possibilities:
1) dllname.dll depends on other dlls which are not registered on the user's machine
2) Even though the user has admin rights to their PC, they still are restricted from using certain registry keys that dllname.dll needs to write to.
I don't think the problem is #1, because I removed a few dlls that dllname.dll is dependent on, and when I run regsvr32 dllname.dll on a PC that doesn't have the original problem, I get a different error code: 7e. Has anyone come across this problem, and do you know the solution? This happens on an XP PC, and it's only happening on 1 out of 10 PCs. The other 9 PCs have no problem registering dllname.dll.
Re: DllRegisterServer returns 0x80020009 when trying to register a dll
I get this issue with clients a lot. It always turns out that they are not using xp, but vista. If it is vista (blue orb instead of green start button), the easiest way to fix it is to run the CMD.exe as Administrator.
Steps:
Start> Computer> Local Disk (c:)> Windows> System32> Scroll down to CMD.exe, right click and 'Run as Administrator'
Then you can just regsvr32 xxxxx.dll
to change directory use the following format:
to go back a folder - CD..
to navigate forward - cd folderNameExactly
Re: DllRegisterServer returns 0x80020009 when trying to register a dll
Thank you very much, it solved the problem on windows7 too :)
Re: DllRegisterServer returns 0x80020009 when trying to register a dll
When I try to run the command: "regsvr32 dllname.dll" for a capicom.dll, I get a popup with an error message saying that DllRegisterServer returned 0x80020009.
Kindly help me on this issue...
Re: DllRegisterServer returns 0x80020009 when trying to register a dll
Hi,
In order to resolve this issue, you can also do the following:
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.
Re: DllRegisterServer returns 0x80020009 when trying to register a dll
I am having a similar problem trying to run a program in windows 7. I ran your code above and received the following error message:
The task has completed with an error. See Log %windir%\security\logs\scesrv.log
The error log is quit long, but it appears that certain securities are not set up. My machine will not allow me to create a restore point and I wonder if the 2 are related. I'm in over my head here and any advice would greatly help.
Log highlights (I can provide more info if needed);
----Configure User Rights...
SeImpersonatePrivilege must be assigned to administrators. This setting is adjusted.
SeImpersonatePrivilege must be assigned to SERVICE. This setting is adjusted.
----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.
----Configure 32-bit Registry Keys...
Configure machine\software.
Configure machine\software\classes.
Warning 5: Access is denied.
Error setting security on machine\software\classes.
----Configure Security Policy...
Configure password information.
Administrator account is disabled.
Guest account is disabled.
Re: DllRegisterServer returns 0x80020009 when trying to register a dll
thanks "regsvr32 xxxxx.dll" it solves my problems,
i was suffered by last one month and atleast i was found the solution.
thanks again