DLLRegisterServer in <location of the DLL file> failed.  Return code was 0x80004005. OS is WIN2K.

Posted on 2003-11-28
Last Modified: 2012-05-04
i created a simple DLL using VB6.  i was able to register the file in a windows 98 PC.  but when i tried to register it in a win2k, im getting the following error message:

DLLRegisterServer in <location of the DLL file> failed.  Return code was 0x80004005.

i tried to register the file in another PC with win2k and it worked.  i was just wondering why i was unable to register it in other PCs with win2k os.

would really appreciate your help on this matter.

thanks in advance.


Question by:wala_lang
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Accepted Solution

izwiz earned 100 total points
ID: 9836435
Do you have the VB runtimes on the affected PC?
LVL 21

Assisted Solution

jvuz earned 75 total points
ID: 9836832
LVL 33

Assisted Solution

MikeKane earned 75 total points
ID: 9838062
Got this from Microsoft:  

If you use a Microsoft Internet Information Server (IIS) application (WebClass) to create a dynamic-link library (DLL) in Visual Basic 6.0, you receive the following error message when you try to register the DLL:

DLLRegisterServer in <path to DLL> failed.
Return Code was: 0x80004005
This error message occurs when you try to register the DLL on a computer other than the one on which it was created.
The WebClass run-time files must be installed to register a WebClass DLL. This error occurs if you try to register the DLL on a computer that does not have the WebClass run-time files installed and registered.
To resolve this problem, use one of the following methods:
The best way to deploy a WebClass is to use the Package and Deployment Wizard. The Package and Deployment Wizard packages the dependent WebClass run-time DLLs when your WebClass is deployed. For information on how to use this tool, see the following Microsoft Web site:

Copy and register the Mswcrun.dll file to the computer on which you are trying to register your WebClass DLL.
Steps to Reproduce Behavior
In Visual Basic 6.0, use the IIS Application Project option to create a WebClass.
Copy the DLL to a computer that does not have the Mswcrun.dll file.
At a command prompt, type regsvr32 WebClassDllName.dll to register the DLL.
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Author Comment

ID: 9856743
Hi everyone,

Sorry it took me this long to reply on your answers.  I tried installing the VB6 runtime files on the target win2k PCs but I was unable to proceed because I'm getting an error message.  Based on the message, it seems that the problem I'm encountering is due to the ID that I'm using, which doesn't have any administrator rights on the target PCs.

So, what I did was I logged inside as an administrator.  It worked!  I was able to register my DLL files without running the VB6 runtime files.  The cause of the problem was the ID that I'm using in registering the DLL files.

I still would like to thank everyone for taking their time out and giving me some ideas.  If not for your suggestions guys, I wouldnt have come up with the answers.  I gave the highest grade to izwiz for being the first one to respond =).  I Also awarded points to jvuz and MikeKane for their ideas and time.

Thanks again guys.

LVL 21

Expert Comment

ID: 9864804


Expert Comment

ID: 11175137
I was getting this error, even when logged on as Administrator. After reading this thread, I checked permissions on the DLLs I was trying to register, and found a complicated set of rules (probably applied by Microsoft's anti-intrusion patches to Win2K). I got the files to register (and work correctly) by changing their permissions en masse to Everyone, Full Control.


Expert Comment

ID: 13896577
I had the same exact problem even though the DLL application I wrote didn't use Microsoft Internet Information Server (IIS) application (WebClass).  The fix was the same thing though.  Also, I am included in users under the "Administrators" group yet I actually had to log in as the default "main" Administrator to make things work.  I'm using WIndowsXP.  Thank you Mr. Gates!

Thanks wala for the fix.

Expert Comment

ID: 23202879
The links given in this article are removed. Can give any other solution for this problem ?

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Windows 7 does not have the best desktop search built in. This is something Windows 7 users have struggled with. You type something in, and your search results don’t always match what you are looking for, or it doesn’t actually work at all. There ar…
#Citrix #POC #XenDesktop #vCenter #VMware #ESX
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question