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
7
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,406
  • 21
  • 50
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,126
  • 4
  • 50
  • 69
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

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
  • 2,854
  • 3
  • 24
  • 28
6
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,164
  • 1
  • 18
  • 25
5
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,056
  • 20
  • 82
  • 156
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,849
  • 2
  • 23
  • 36
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
  • 180,104
  • 92
  • 446
  • 681
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
  • 36,412
  • 47
  • 153
  • 230
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,555
  • 2
  • 25
  • 36
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
  • 10,358
  • 32
  • 85
  • 134
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
  • 55,003
  • 52
  • 197
  • 338
4
votes
2 answers

Regasm - Unable to locate input assembly

I wrote a .NET assembly and registered it successfully in my local machine using Regasm but when I try to do that in the target server, I am getting the following error. Regasm :error RA0000 : Unable to locate input assembly "full dll path" or one…
Srinivasan
  • 49
  • 1
  • 1
  • 2
4
votes
1 answer

Using a .NET-2.0-targeted COM DLL in the GAC on a .NET-4-only system

Greetings again, Following up my previous question, I'm trying to maximize the compatibility of my C#-written Windows Explorer extension. In particular, I'm interested in making sure it works in an environment in which .NET 4 is installed and .NET…
Paul Accisano
  • 1,287
  • 1
  • 13
  • 23
4
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,330
  • 33
  • 50
1
2
3
14 15