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
1
vote
0 answers

How to register .net assembly from c++ application

I have a .net assembly which has the com classes. I want to register this assembly so that my c++ application can call the methods exposed in .net assembly. I can register assembly using regasm tool. But I don't want run regasm tool on my client…
1
vote
1 answer

regasm netstandard DLL

I have a C# project that I'd like to use as a .NET Standard 2.0 library for other .NET assemblies and as a COM component for native code. I could create the COM object just fine when I targeted the full .NET Framework, but when I created a new…
Edward Brey
  • 40,302
  • 20
  • 199
  • 253
1
vote
1 answer

Error Running RegAsm on C# DLL

I've written a C# DLL that performs some data gathering and manipulation using Entity Framework. The DLL is COM compatible and is designed to be called by a legacy VB6 application. It is using .NET 3.5 using Visual Studio 2010 THe DLL works…
Ian Boggs
  • 522
  • 3
  • 16
1
vote
1 answer

Getting the "version" number of a TLB

A legacy application displays the version numbers of all of its components, which are supposed to be DLLs. We are tricking the application for various reasons by putting TLBs in the folder that gets queried. However, when it lists the version…
Dave
  • 14,618
  • 13
  • 91
  • 145
1
vote
1 answer

Install DLL with regasm witouth cmd window

I'm trying to create a installer that uses regasm.exe to install my DLL but it open the black cmd window and i don't wan't to show it. My code looks like: ExecWait "$MyPath\RegAsm.exe" /tlb /register /codebase /nologo /silent…
jooooooooota
  • 35
  • 1
  • 8
1
vote
1 answer

Trying to Register package to COM

I'm using regasm to register my .dll (derived from .cs below) to Windows COM. It returns a Warning that states that there was No Type To Be Registered. I thought this was because not all of my dependencies had default constructors; but post-change I…
Olivier10178
  • 191
  • 11
1
vote
0 answers

How to register DocumentFormat.OpenXml.dll for my COM dll project

I have a small problem with using assembly in my project. I have to make COM dll, to use in other application, that used OpenXML SDK for faster load xlsx files. And it work perfectly on my machine. But there is problems, then I tried to port my…
1
vote
2 answers

Wix - How to automate call to Heat on DLL file to receive regasm information

In order to simulate the "regasm file.dll /codebase" execution during Install, we run Heat.exe on the file.dll we want to add to registry. Then we add the generated content to our installer.wxs file, and everything works. We would like to automate…
Maxim
  • 15
  • 6
1
vote
1 answer

Regasm and Heat - how it works

I have a general question. If I need to deploy an assembly as part of my product, which needs to be registered on a client machine and the tlb file created, people suggest to use WiX toolset's heat harvesting tool. However, do I need to register…
Tiger Galo
  • 289
  • 4
  • 15
1
vote
0 answers

Regasm through Wise installer

I have a Visual Basic 6 program, which needs to use a C# dll. On my developement environment(XP) I can do manual RegAsm xxxx.dll /tlb:xxx.tlb /codebase and It works fine. Now, I need to install this program on target machines- which on most cases…
Karen16
  • 21
  • 1
1
vote
1 answer

How to debug regasm (what types get registered)

We have a Managed C++ DLL that when registered with regasm appears to add some junk types to the registry. Within the class Blah, any private variables utilizing MyTeam.ManagedAutoPtr get added to the registry. My question at this point is whether…
Mijin
  • 125
  • 1
  • 9
1
vote
0 answers

Why dll files must be copied into windows folder in Windows 10?

I have an interesting problem. Well, I develop an AddOn for an application. My addon is a .NET COM dll and i register it by using regasm.exe (I created a script to register the dll) The dll requires several dlls but 2 dlls which are xxx.dll and…
unbalanced
  • 1,192
  • 5
  • 19
  • 44
1
vote
1 answer

WIX heat for registering COM with 64 bit

I am using the following line to generate the wxs file for registered COM "C:\Program Files (x86)\WiX Toolset v3.10\bin\heat.exe" dir "$(SolutionDir)Output" -dr INSTALLFOLDER -cg SapFilesComp -gg -g1 -sf -srd -var "var.outputFolder" -out…
Mostafa abdo
  • 616
  • 1
  • 8
  • 21
1
vote
0 answers

Initialise COM object from windows service

I have a COM object that is being called from a windows service, this COM is actually a .net dll registered via Regasm.exe. In my windows service it is failing when I try to create an object with an error saying it could not create the COM object.…
Andrew
  • 691
  • 6
  • 17
1
vote
0 answers

COM component cannot call .NET component on Win 2008 R2

Question after much research without any luck. We have a classic ASP site that uses a COM component. This COM component needs to call .NET component using CreateObject(".NET component"), from classic ASP. However, we are seeing this in the event…
Marshal
  • 11
  • 2