Questions tagged [dllregistration]
171 questions
106
votes
15 answers
How do I register a DLL file on Windows 7 64-bit?
I have tried to use the following code:
cd c:\windows\system32
regsvr32.exe dllname.ax
But this is not working for me. How can I register a DLL file on Windows 7 with a 64-bit processor?

Rajkumar Reddy
- 2,357
- 6
- 24
- 29
90
votes
13 answers
How do I register a .NET DLL file in the GAC?
I have made a .NET .DLL file, which I want to register in the GAC.
I have used this command in Windows Server 2003 Command Prompt:
C:\"Path of dll"\>gacutil /i dllname.dll
'gacutil' is not recognized as an internal or external command,
operable…

Vineet
- 5,029
- 10
- 29
- 34
51
votes
1 answer
How to unregister the assembly registered using regasm
I registered one of my dlls on the development machine using regasm as below (ASP application)
In a cmd prompt, I navigated to
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 and did:
regasm /tlb "xxx.dll"
Now I made some changes in the dll. So I…

Vani
- 1,345
- 4
- 27
- 48
41
votes
4 answers
How to repair COMException error 80040154?
Moving a working C# project from a 64-bit Windows 7 machine to a 32-bit XP machine caused the following error:
Retrieving the COM class factory for component with CLSID {681EF637-F129-4AE9-94BB-618937E3F6B6} failed due to the following error:…

jacknad
- 13,483
- 40
- 124
- 194
36
votes
12 answers
ActiveX component can't create object
I have just installed a third party app on my Windows Server 2008 server
and I get the
ActiveX Component can't create object
message when I try to access using a CreateObject in VBScript.
It is definitely installed and exists under "Programs and…

GordyII
- 7,067
- 16
- 51
- 69
34
votes
1 answer
Error 80040154 (Class not registered exception) when initializing VCProjectEngineObject (Microsoft.VisualStudio.VCProjectEngine.dll)
I'm trying to run this tool in order to convert a Visual C++ project to makefile.
The project I'm trying to convert project is written in VS2008, so I'm using a reference to Microsoft.VisualStudio.VCProjectEngine.dll from version 9.
It fails in this…

rkellerm
- 5,362
- 8
- 58
- 95
33
votes
7 answers
How to check if a DLL file is registered?
How do I find whether a DLL file written in C# is registered or not programmatically?
I already tried this code, but it doesn't come off.
If I register a DLL file and check using this code it returns. If I unregister it and run this same piece of…
karthik
30
votes
3 answers
Registration-free COM/DLL?
My program is using the Skype4COM.dll (A wrapper for the Skype API).
I am using Delphi 2010 - is there a way to make sure that my program is ALWAYS using the Skype4COM.dll that I will ship it with? The thing is, there are different versions of…

Jeff
- 12,085
- 12
- 82
- 152
23
votes
4 answers
Hand Install of 64-bit MS Access ODBC drivers when 32-bit Office is present
I want to do a hand install of the MS Access 64 bit odbc drivers. Uninstalling 32 bit Office and installing 64 bit Office is not an option due to the add-ins that our company uses.
I downloaded the AccessDatabaseEngine_x64.exe and using WinRar and…

JMoney
- 321
- 1
- 2
- 6
15
votes
2 answers
How do I register a .NET COM DLL with Regsvr32?
I have a VB6 application that uses a COM DLL. The DLL is written in C#. In the C# project properties I have checked the "Register for COM interop" option. The VB6 app works fine on my development machine. The C# code follows this format exactly:…

Mike Webb
- 8,855
- 18
- 78
- 111
14
votes
4 answers
Visual Studio 2010 - Cannot Register Assembly
I am running Visual Studio 2010 on a Windows 7 VM and trying to build a fairly large solution. When I try to do so, I get the error:
Cannot register assembly "C:\Development\ProjectName\Source\bin\Debug\AssemblyName.dll" - access denied. Please…

algorowara
- 1,700
- 1
- 15
- 15
14
votes
3 answers
How do I unregister COM dlls initially added with RegSvr32 when the /u arg doesn't work?
Right, initially ran:
c:\regsvr32 Amazing.dll
then, (accidentally - I might add) I must have run it again, and (indeed) again when new versions of 'Amazing.dll' were released. Yes - I know now I should've run:
c:\regsvr32 /u Amazing.dll
beforehand…

Charlotte Skardon
- 6,220
- 2
- 31
- 42
12
votes
7 answers
In .NET, is there a need to register the DLL?
Is it necessary to register a compiled DLL (written in C# .NET) on a target machine.
The target machine will have .NET installed, is it enough to simply drop the DLL onto the target machine?

Helios
- 421
- 1
- 7
- 12
9
votes
3 answers
wrap 32 bit dll for 64 bit operating system to work with regsvr32.exe
We are currently transferring our websites from Windows 2003 (32-bit) to Windows 2008 (64-bit) and have hit a problem.
One of our website use the payment gateway HSBC CPI which requires a DLL to be registered(regsvr32.exe), this DLL is then used…

Tim Jarvis
- 667
- 4
- 9
- 17
9
votes
12 answers
Problem registering a dll - Access Denied
When trying to run regasm in Win2008 Server:
regasm "C:\Program Files\FooProg\Bar.dll" /tlb:"C:\Program Files\FooProg\Bar.tlb"
I get the following error:
RegAsm : error RA0000 : An error occurred while saving the exported
type library: Access is…

Vidar
- 6,548
- 22
- 66
- 96