Click here to Skip to main content
11,804,008 members (78,770 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C# C#4.0
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
Posted 14-Mar-12 21:15pm
Edited 14-Mar-12 21:20pm
Ravi Sant at 15-Mar-12 5:54am
there are so many solutions talking about this, if you just google.
manwhile check this out:

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

".. 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.
MSuhas at 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)

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

  Print Answers RSS
0 OriginalGriff 410
1 CPallini 310
2 Sergey Alexandrovich Kryukov 234
3 CHill60 230
4 Suvendu Shekhar Giri 200
0 OriginalGriff 3,140
1 Maciej Los 1,910
2 KrunalRohit 1,907
3 CPallini 1,845
4 Richard MacCutchan 1,187

Advertise | Privacy | Mobile
Web01 | 2.8.151002.1 | Last Updated 15 Mar 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100