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
1 answer

DllRegisterServer for C# dll?

Is there an equilivant to DllRegisterServer for C# dll's? I am creating a COM component and I would like to have some custom code run when I regasm the dll.
Kyle
  • 17,317
  • 32
  • 140
  • 246
1
vote
2 answers

Regasm can't find embedded assemblies

I'm developing a .Net component that will live inside Windows application as a plugin. This plugin will be registered on the client machine using regasm. My component embeds most of its dependencies and returns assemblies to the AppDomain when…
Ld00d
  • 41
  • 7
1
vote
1 answer

Registering DLLs using .reg file in WiX

Background to Question I am currently in the process of trying to put together a means of distributing a new project I am working on which requires that a COM exposed .NET DLL be registered on the user's system and as I am new to WiX and making the…
user1243584
1
vote
1 answer

One C++ client fails to load with our new COM registered .NET .dll, another works

We have an old C/C++ .dll that a customer accesses via COM. We have tried to replace our old .dll with a new one written i .NET. Customer cannot recompile their client so it is important that the old .dll can be replaced simply by COM unregister /…
Poppert
  • 447
  • 1
  • 5
  • 16
0
votes
1 answer

Can I use regasm to register a .Net COM as SingleUse

Can I register a .Net COM class with the SingleUse-flag? The reason I want to use SingleUse is that otherwise the static fields inside the COM instances (the client application uses 2 instances with different database connection strings) are shared…
Cohen
  • 2,720
  • 26
  • 24
0
votes
1 answer

Regasm /codebase fails saying it cannot find the file specified when setting copylocal=true

I am trying to register an assembly using regasm /codebase.Everything works fine but my project requirements forces me to put the copylocal property of a referenced dll to false.When this is done regasm fails saying it cannot find the dependent dll…
biju
  • 17,554
  • 10
  • 59
  • 95
0
votes
1 answer

Use .NET Framework Libraries in 64bit assembly referenced from VBA7 in Excel

I have a library written in C# that uses standard .NET framework libraries (System, System.Windows.Forms). This library is COMVisible as well as its classes, I just have two classes: - TestClass (a class with one method) - TestForm (an empty…
willvv
  • 8,439
  • 16
  • 66
  • 101
0
votes
1 answer

c# ContextMenu Handler

I've tried to use this code to develop my own context menu handler for my app: http://www.codeproject.com/KB/shell/ratingcolumn.aspx However nothing happened. Then I tried just compiling that code, building dll and using regasm pathToDLL…
n1tr0
  • 269
  • 4
  • 15
0
votes
1 answer

problems registering and using a DLL assembly

I use Visual Studio 2015 community on my Win 10 dev machine. I built a DLL and registered it for COM interop. In the same solution I have a test console application which I use to test/ debug the DLL. Pleased to say it works really well. The code is…
paul K
  • 13
  • 3
0
votes
0 answers

How to deploy COM-object with VS2022 installer project?

For installation I need operation regasm /codebase X.dll but there are a couple problem, usually nobody understanding folder with regasm and secondary - how to add this command to installer project. Where is the place I need to click for add…
0
votes
0 answers

regasm on a .net framework library now wants netstandard 2.1.0.0

I have a .net framework 4.8 library I have been working on for months in VS19. The project is configured to "Register for COM interop" (which runs regasm.exe on the dll). Recently (in last few days) I installed VS22 and have been playing around with…
John Freebs
  • 435
  • 4
  • 18
0
votes
1 answer

Registering .net assembly for COM succeeds with regasm but fails using RegistrationServices.RegisterAssembly

This is one of the strangest issue I have encountered. There is a .net assembly, which is exposed to COM. If you register it with regasm /codebase my.dll - it is sucessfully registered, and can be used. However, if you register it from code using…
Zoli
  • 841
  • 8
  • 31
0
votes
0 answers

Dll not registered by gpo with regasm

i have a computer gpo that launch a batch script. > "/path/regasm" /codebase "\\domain\share\path\dll.dll" > reg import "\\domain\share\path\reg.reg" Registry file is added to registry but dll is NOT registered. When i launch script with…
Alex Lum
  • 175
  • 2
  • 12
0
votes
2 answers

Windows Script Host cannot reference type library with version number in hexadecimal notation

I have .NET framework assembly which is exposed to COM. Recently, since the assembly minor version number reach 10, it stopped being usable from Windows Script Host (WSH). [assembly: AssemblyVersion("1.10.0.0")] The TypeLib registry entry for some…
Martin Prikryl
  • 188,800
  • 56
  • 490
  • 992
0
votes
0 answers

VS 2019, VB, Class Library, getting error "Could not load file or assembly 'System.Runtime, Version=4.2.2.0, Culture=neutral" during RegAsm

It's my 1st time trying to build a .DLL in .Net, for use with a VB5 program...I'm a newbee Windows 10, VS 2019, VB, building a Class Library Target framework is .NET Core 3.1. RestSharp 106.15.0 in Assemblies, Newtonsoft.Json 13.0.1 getting…
RichG
  • 1
  • 2