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
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
  • 167,383
  • 100
  • 513
  • 979
7
votes
2 answers

How to Register a Type Library without RegAsm.exe

I want to know if it's possible to register a type library without using the RegAsm tool. Here is my situation, which will hopefully explain why I want to do this: I'm developing an assembly in .NET that will provide some modern functionality for…
Kyle Gagnet
  • 2,294
  • 2
  • 20
  • 27
7
votes
2 answers

How does .NET/COM work with multiple versions registered via Regasm?

I have a .NET DLL (that happens to be written in C++/CLI). Parts of it I want to expose via COM. I do this and register it using "regasm my.dll /codebase". So far so good. But then I change some things and the version number of the assembly…
mhenry1384
  • 7,538
  • 5
  • 55
  • 74
7
votes
1 answer

64bit Type Library and 32bit type libraries out of Sync

This problem has been causing me a headache for a few days, and I cannot find a reason for it. I'm pretty sure this is an environmental issue particular to my machine, but still its causing me problems with testing. I'm creating a DLL in C# using…
DFriend
  • 237
  • 2
  • 9
6
votes
1 answer

RegAsm dll no types registered

I am attempting to register a .dll using RegAsm. It is a .NET 2.0 dll. All classes are public and ComVisible is true. I am still getting the RA0000 : No types were registered error. Below is the code and assemblyinfo. Any help would be great,…
steventnorris
  • 5,656
  • 23
  • 93
  • 174
6
votes
1 answer

Unregistering old versions of a .net assembly

I have an assembly that has a lot of old registered versions. The only dll I have is the last one. How can I unregister all versions of the assembly? Thanks. EDIT : I want to do this at runtime so I want something like regasm -u... or some other…
Gil Stal
  • 3,354
  • 4
  • 29
  • 32
5
votes
1 answer

regasm RA0000: No types were registered

I have a C++/CLI assembly (compiled for .NET 3.5 that comes with Windows 7). The assembly is marked as ComVisible(true). It contains 2 classes and 1 interface. Both classes are marked as ComVisible(false) so they shouldn't matter. The interface is…
Daniel Gabriel
  • 3,939
  • 2
  • 26
  • 37
5
votes
1 answer

In WXS, how to I refer to a file that is installed via a different component?

This question refers to output from heat.exe. I'm trying to do "the right thing" with respect to registering some .NET assemblies for COM interop in the MSI. Regasm.exe is the wrong thing. Calling regasm.exe directly, which is easy and works…
Cheeso
  • 189,189
  • 101
  • 473
  • 713
5
votes
1 answer

How to find regasm location on a machine

I am creating an installer that registers .NET assemblies to COM using regasm. Different clients will have different Microsoft.Net versions installed on their machines. I need to know the regasm location in advance to use it. Should I look for it…
Samra
  • 1,815
  • 4
  • 35
  • 71
5
votes
3 answers

How to unregister my .net assembly when it's no longer in the same location?

I have a dll that's registered for com interop, so under HKLM\Software\Classes\CLSID[my guid]\InprocServer32[my version no]\Codebase it has the path of the registered dll. However, I've rearranged my folder structure so that path is no longer…
Rory
  • 40,559
  • 52
  • 175
  • 261
5
votes
1 answer

Property/Method Descriptions for COM Libraries

If you create a COMClass, I've noticed that the values in the XML Summary tag do not show in the object browser of VB6/VBA when you reference the resulting tlb file. Is there a way to have these values show up?
Oorang
  • 6,630
  • 1
  • 35
  • 52
5
votes
1 answer

Regasm writes mscoree.dll into Registry key InprocServer32

When I register my .NET Assembly with regasm.exe the registry key HKEY_CLASSES_ROOT\CLSID{111E32AD-4BF8-495F-AB4D-6C61BD463EA4}\InprocServer32 is set to "mscoree.dll". However, I am trying to mimic an existing COM-Server that was written in C. When…
Stiefel
  • 2,677
  • 3
  • 31
  • 42
5
votes
5 answers

Unable to call c# code from vbscript - ActiveX error

I am trying to call a method I have written in C# from VBScript. I have followed just about all of the instructions I can find on the web and am still having problems. Specifically I am getting Error: ActiveX component can't create object Code:…
Grant
  • 11,138
  • 32
  • 94
  • 140
5
votes
1 answer

WiX equivalent of "Regasm.exe my.dll /codebase"?

CodeProject has a great Windows shell extension tutorial. Compile, run Regasm.exe CSShellExtContextMenuHandler.dll /codebase, and the shell extension is available, it works great. But asking users to run Regasm would not be user-friendly, so I wrote…
Nicolas Raoul
  • 58,567
  • 58
  • 222
  • 373
4
votes
1 answer

How to use Regasm.exe to Completely Unregister a AssemblyFile

I tried the following command to unregisters AssemblyFile: regasm "AssemblyFilePath" /unregister /silent However, it still leaves the such registry entries: Windows Registry Editor Version…
ThinstallSoft
  • 145
  • 2
  • 11
1
2
3
15 16