Click here to Skip to main content
15,749,072 members
Please Sign up or sign in to vote.
5.00/5 (2 votes)
See more:
I was trying to register dll using visual studio command prompt it is showing error "dllregisterserver failed with error code 0x80004005 "

i have wriitten code "regsvr32 c:\sample.dll" in visual studio command prompt and the pc is 32 bit

please help me out
Updated 14-Mar-12 21:20pm
Ravi Sant 15-Mar-12 5:54am    
there are so many solutions talking about this, if you just google.
manwhile check this out:

1 solution

".. DllRegisterServer failed with error code 0x80004005 ...."

try this way

It may because of security issue. To solve this,
Go to Start --> All Programs --> Accessories, right-click Command Prompt, and then click Run as Administrator

Then use regsvr32 to register the DLL.

It's work.
Share this answer
MSuhas 14-Sep-12 3:08am    
Your solutions works fine for manual registering the dll. What to do for registering the dll's through code ( through some utility program)
Member 11711210 14-Nov-15 12:58pm    
Worked !!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900