Wednesday, January 7, 2009

Registering a DLL returns error "return code was 0x80020009"

We may get this error while trying to register the dll.

0x80070005 is the Return code for not having administrative credentials.

Looks like 0x80020009 is a generic error.

If it is a permission problem...HKEY_CLASSES_ROOT is the key that you want.

Try this...
Reset the registry permissions
As soon as you have found the registry subkey that has the incorrect permissions, update the permissions for that subkey.
To update the permissions of the registry subkey, follow these steps:
a. Click Start, click Run, type regedit and then click OK to startRegistry Editor.
b. Locate and right-click HKEY_CLASSES_ROOT:and then click Permissions.
c. Under Group or user names, click Administrators.
d. Under Permissions for Administrators, make sure that the Allow check boxfor the following entries is selected:* Full Control * Read *
e. Click Apply and then click OK.
f. On the File menu, click Exit to quit Registry Editor.

Now try to register the dll again using regsvr32 command

No comments: