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
3
votes
3 answers

Consume a .NET Assembly from a classic ASP page

I have an old .net 2005 web site that has some asp pages and having object reference problem accessing .net dll. The maintenance task was handed down to me and the original developer is nowhere to be found :( I started at .Net already so I don't…
Emirage
  • 31
  • 1
  • 8
3
votes
1 answer

Register tlb COM

I made a COM Wrapper for c# to use it in vba. I compiled it, after with gacutil and regasm I installed it on my pc, after I refered it in vba and it worked perfectly. Now I want to use this foo.tlb in another PC, but it doesn't have gacutil or VS.…
Muriel
  • 63
  • 1
  • 1
  • 5
3
votes
1 answer

How do I unregister/remove all COM entries created in registry

How do I remove all COM entries registered in the registry for a ProgID("Log.Main"). I have a COM component which is registered using regasm and now I could see a multiple class Ids for this COM Component(using oleview.exe) under CLSIDs in…
Biju Thomas
  • 1,079
  • 3
  • 14
  • 27
3
votes
1 answer

How does one configure the COM version to use of a .NET assembly registered by RegAsm.exe?

regasam.exe registers a .NET assembly for use by COM by creating version-dependent registry keys: HKEY_CLASSES_ROOT\CLSID\{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} |- InprocServer |- 1.0.0.0 |- 1.0.0.1 |- ... When there is more than one…
Micha Wiedenmann
  • 19,979
  • 21
  • 92
  • 137
3
votes
2 answers

How do you register/unregister an EXE as a COM object from C#?

EDIT 5/11/2013: This question originally asked how to programmatically register a COM object using code from .NET without having to use REGASM. Yahia's answer covers both how to register a DLL programmatically and an EXE. ORIGINAL QUESTION: At the…
codewario
  • 19,553
  • 20
  • 90
  • 159
3
votes
1 answer

using .NET Assemblies in Delphi

I am currently required to open and use a .NET assembly in delphi. The Assembly that i am trying to use also has an assembly of objects it is using. With the object assembly i was able to use regasm to create a type library. I was also able to…
Andy
3
votes
4 answers

C#: Regasm generating registry entries for every class in my COM DLL?

I'm writing a class-library (IE BHO) in C# and currently wrangling with the large volume of what I think is junk output coming from REGASM's generated registry keys. The short version is this: I only want to expose a handful of classes (currently:…
Tom Corelis
  • 4,990
  • 11
  • 35
  • 48
2
votes
1 answer

Does GAC conflict with the Registry for Assembly Loading?

I have a DLL I generate from a C# project. I then register it via regasm so that the library can be used inside several legacy VB scripts. Recently I created a new project (C# console app) that will reuse certain modular aspects of the original…
2
votes
1 answer

Share registered .NET assembly between two applications installed with Inno Setup

I have application A. In the [Run] section I have two entries: Filename: "{dotnet40}\regasm.exe"; \ Parameters: "MSAToolsLibrary_x86.dll /codebase"; \ WorkingDir: "{app}"; Flags: runhidden Filename: "{dotnet4064}\regasm.exe"; \ …
Andrew Truckle
  • 17,769
  • 16
  • 66
  • 164
2
votes
3 answers

Use Type Library (.tlb) in a VB6 project, ActiveX create object fail

I created a dll and tbl files from C# Visual Studio 2008. I Regasm AssemblyName.dll /tlb: FileName.tlb /codebase to register it to my local server. Use the tlb reference. Compile it, it runs fine in my development PC. After I make an exe, run it on…
kelvinfix
  • 2,915
  • 8
  • 37
  • 49
2
votes
1 answer

Get IDL code from TypeLibrary programmatically

I am writing code to perform the following steps; Register a .net .dll and generate a .tlb using regasm.exe Register a .net .dll and generate a .tlb using regasm.exe Generate the IDL code from the typeLibrary and store it in a file. Edit the IDL…
Jambobond
  • 619
  • 3
  • 12
  • 23
2
votes
1 answer

c++ managed and unmanaged static library

I have a some managed C++ assembly with simple code. This assembly has mixed (managed/unmanaged) code. If I put unmanaged code to the separate unmanaged static library and link it with managed code then I get registration error like this: "Failed…
yuriv
  • 21
  • 2
2
votes
1 answer

Calling VB.NET COM Class Library from VB6 ActiveX not working

First of all, I am dealing with a legacy VB6 application that creates "jobs" by calling a (non-ActiveX) C++ DLL that launches (by calling CLSIDFromProgID to point to the class and then launching via CoCreateInstance) various C++/VB6 ActiveX exe's…
2
votes
3 answers

regasm just doesn't work

For every example of registering .NET COM objects in the web, I see the tool "regasm" for doing the job. Everybody does so!!! But it never worked for me! I am tired of trying to overcome it! My only solution would be regsvr32, which requires a…
Vercas
  • 8,931
  • 15
  • 66
  • 106
2
votes
0 answers

RegAsm cannot loading dependencies from another directory

I have some DLLs in a subfolder which I need to register a tlb for using RegAsm. These DLLs have some dependencies which reside in the parent directory. When running RegAsm on these DLLs, however, there is an error saying that the dependencies could…
Luke
  • 2,434
  • 9
  • 39
  • 64