The module xxx.dll was loaded but the call to DllRegisterServer failed with error code 0x8002801c” while registering Dll files

Original title: Hi,__ __When I registered some .dll files with regsvr32, I got error message__ __

Hi,

When I registered some .dll files with regsvr32, I got error message:
The module xxx.dll was loaded but the call to DllRegisterServer failed with
error code 0x8002801c.

My OS is windows 7

Thanks

 

Question Info


Last updated December 11, 2018 Views 93,202 Applies to:
Answer

Hi,

 

This error message happens if you’re not executing the commands under elevated (administrator) command prompt. When you do not run the command prompt in administrator mode, the user account control will prevent you from making changes to the DLL (Dynamic Link Library) files even though your account is listed under administrator group. You will not have permission on library in registry. I would suggest you to execute register dll files under elevated command prompt.

 

Method 1: To run elevated command prompt

a.    Click on Start; Click on All Programs.

b.    Click on Accessories.

c.    Right click on Command Prompt and run as administrator.

d.    Now try registering the dll file and you should be able to do it.

 

How do I run an application once with a full administrator access token?

http://windows.microsoft.com/en-US/windows7/How-do-I-run-an-application-once-with-a-full-administrator-access-token

 

Method 2: Set permissions on library under your user name in registry editor.

Registry Disclaimer: The steps mentioned below include system registry modification. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:

How to back up and restore the registry in Windows

322756    

a.    Click on Start; in the start search type regedit and press Enter.

b.    If you receive User account control prompt, click on Yes.

c.    Go to Registry Editor (regedit) and to key HKEY_CLASSES_ROOT\TypeLib

d.    Right click on TypeLib and select Permissions and go to the Security tab

e.    Find out if your username is listed in the list of users, if so make sure you’ve
Full Control

f.     If not click on Add and type in the username. Once added make sure the user has Full Control.

g.    Apply changes and close the registry editor.

 

Now try registering dll files.

 

Hope this information is helpful and let me know if you need any further assistance.

Mouneshwar R – Microsoft Support

-------------------------------------------------------------------------------------------------------------------------

Visit our  Microsoft Answers Feedback Forum and let us know what you think

29 people were helped by this reply

·

Did this solve your problem?

Sorry this didn't help.

Great! Thanks for marking this as the answer.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this response?

Thanks for your feedback.