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.

220 questions
40
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
  • 12,313
  • 34
  • 91
  • 111
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
  • 29,788
  • 45
  • 138
  • 211
21
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
2 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
  • 693
  • 1
  • 4
  • 17
19
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
  • 690
  • 1
  • 5
  • 16
11
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,681
  • 2
  • 18
  • 28
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
  • 93,378
  • 43
  • 217
  • 263
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,780
  • 3
  • 20
  • 27
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,013
  • 1
  • 15
  • 31
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.
  • 139,555
  • 58
  • 313
  • 529
8
votes
11 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,067
  • 22
  • 61
  • 93
8
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,408
  • 1
  • 21
  • 36
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
7
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
Wojtpl2
  • 498
  • 6
  • 15
7
votes
3 answers

Why exactly does regasm warn me about signing with a strong name?

If I want to make a .NET assembly usable as a COM server I have to add a set of attributes and then use regasm to register it as a COM server. If the assembly is not signed with a strong name regasm when run with /codebase key shows a RA0000 warning…
sharptooth
  • 159,303
  • 82
  • 478
  • 911
1
2 3
14 15