Questions tagged [regasm]

Regasm is an Assembly Registration tool that reads the metadata within an assembly and adds the necessary entries to the registry, which allows COM clients to create .NET Framework classes transparently.

Regasm is an Assembly Registration tool that reads the metadata within an assembly and adds the necessary entries to the registry, which allows COM clients to create .NET Framework classes transparently.

235 questions
51
votes
1 answer

What is difference between RegAsm.exe and regsvr32? How to generate a tlb file using regsvr32?

Can any body tell me what is the difference between regsvr32 and RegAsm? My Dll is in C#, so how can I import the classes to c++?
Cute
  • 13,643
  • 36
  • 96
  • 112
27
votes
3 answers

Registering .Net COM DLLs without Admin rights / regasm

Recently, I wrote a class library in C# for use in Office applications, including a critical Access application used by ~70 people. For users with admin rights, registering the DLL is trivial, but getting the DLL working on other machines was…
C. White
  • 802
  • 1
  • 7
  • 19
27
votes
1 answer

Use Visual Studio Setup Project to automatically register and GAC a COM Interop DLL

I've created a .NET assembly for COM interop and it is working well on my development machine. I'm currently trying to figure out how to deploy the DLL to a target machine using Visual Studio's "Setup Project." How can I use the VIsual Studio…
Ben McCormack
  • 32,086
  • 48
  • 148
  • 223
23
votes
3 answers

How to do RegAsm so that it cover 32-bit and 64-bit?

I have a DLL file prepared by C# and my system is Windows 7 64-bit. When i apply the RegAsm its not adding the registry to 64-bit path but only adding it to 32-bit path. "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\RegAsm.exe" /register…
user285594
20
votes
1 answer

RegAsm - When is the /codebase option applicable?

I have a COM-visible DLL written in C# that I would like to use in a VB6 application. I have two main use cases of the DLL and am wondering when the /codebase option is applicable and when it is better to register in the GAC. Use cases: The DLL…
davidk
  • 784
  • 1
  • 6
  • 22
13
votes
2 answers

Calling regasm without administrative rights for COM interop in Excel VBA

A workaround for calling regasm without the admin rights was described here already: COM Interop without regasm I'm trying to create a COM library that my users can deploy and use from Excel VBA without the admin privileges. I liked the regasm…
Michał Fronczyk
  • 1,859
  • 4
  • 24
  • 29
11
votes
3 answers

Why does regasm.exe register my c# assembly with the wrong GUID?

I've got a c# assembly which I'm invoking via COM from a Delphi (win32 native) application. This works on all the machines I've tested it on, except one. The problem is that the Delphi application gets "Class not registered" when trying to create…
Blorgbeard
  • 101,031
  • 48
  • 228
  • 272
9
votes
3 answers

Class not registered error for Instantiation of C# object via COM from VC++

In a VC++ project, I am trying to create an instance (via COM) of a C# class contained within a C# project. Facts Both the C# and C++ projects are compiled using .NET 4.0 The C# .dll is being registered using regasm /codebase…
BigSauce
  • 1,830
  • 3
  • 21
  • 27
9
votes
2 answers

.NET Core 2.1 - How to create COM object and generate *.tlb file

I would like to build COM object in .net Core and then register by RegAsm. My .csproj file: Exe netcoreapp2.1;net4.7.2
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
9
votes
1 answer

What does RegAsm really do? Where are files copied?

We have a plugin for IE based on spicIE, the purpose is to connect to some external devices. To connect to those external devices, another company developed their token & DLLs. We need to have some ActiveX's and DLL's to do authentication by…
ahmad molaie
  • 1,512
  • 2
  • 21
  • 41
8
votes
1 answer

Registering a COM object created with VS C# 2010

I created a COM object with C# yesterday which resulted in three files in the bin/release directory of my VS 2010 project (comclass.dll, comclass.pdb and comclass.tlb). Now, when I build the solution in the project, VS registers the class for me…
deutschZuid
  • 1,028
  • 2
  • 15
  • 33
8
votes
2 answers

Registering a COM without Admin rights

I want to register a .net assembly as COM. In fact what that means as far as I know is, that instead of HKEY_CLASSES_ROOT I want the entries to be written in HKEY_CURRENT_USER/Software/Classes, so that UAC/Admin rights are not needed. Found two…
alek kowalczyk
  • 4,896
  • 1
  • 26
  • 55
8
votes
1 answer

How Does a COM Program Locate a .NET DLL Registered for COM Interop?

One customer wants to consume our .NET DLLs from VB6. They are designed to support reverse interop and all works fine... except: There are two separate VB6 programs in two different directories. It seems it's necessary to do one of: Copy the .NET…
Eric J.
  • 147,927
  • 63
  • 340
  • 553
7
votes
2 answers

Registering a .NET dll for use in VB6 application

I have a DLL I wrote in C# which I want to use in my VB6 application. In VS2008 the project property "Register for COM interop" is checked, and when I compile the DLL and try to use it on my development machine - it runs ok. I need to run it on…
La La La
  • 71
  • 1
  • 2
  • 7
1
2 3
15 16