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.

Filter by
Sorted by
Tagged with
0 votes
1 answer
105 views

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. ...
paul K's user avatar
  • 13
0 votes
0 answers
50 views

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....
Ev1337's user avatar
  • 1
0 votes
0 answers
139 views

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 ...
John Freebs's user avatar
0 votes
1 answer
185 views

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 ...
Zoli's user avatar
  • 851
2 votes
1 answer
133 views

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 ...
Antidiscrete's user avatar
0 votes
2 answers
226 views

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(&...
Martin Prikryl's user avatar
1 vote
1 answer
341 views

RegAsm - completely unregistering library (including typelib) for 32b and 64b COM

I have a .NET assembly that should be registered both for 32b and 64b COM interop. Our installation script successfully registers this and everything works as expected. We want our UNinstallation ...
Francois Botha's user avatar
2 votes
1 answer
41 views

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: "{...
Andrew Truckle's user avatar
1 vote
1 answer
183 views

VS Code - How can I produce a strongly named assembly?

I have a class library I use for an assembly. It is comprised of three classes - classes A and B provide supporting types and methods for class C. After an assembly is built from that library, I need ...
Antidiscrete's user avatar
0 votes
0 answers
351 views

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 ...
RichG's user avatar
  • 1
0 votes
0 answers
161 views

Error querying COM interfaces - class not registered

I try to register a COM component in new Windows Server 2012 R2 with REGASM and don't get any errors. However, the COM class doesn't get registered. Regasm result On my developer computer, this class ...
user avatar
0 votes
0 answers
457 views

Getting error as "Class not Registered" in Delphi while using a c# dll

I am trying to create a C# DLL which could be used in Delphi. But I am getting an error at implementation: My C# code is follows: using System; using System.IO; using System.Runtime.InteropServices; ...
S. B.'s user avatar
  • 196
1 vote
1 answer
680 views

Importing .Reg File Targeting HKEY_CURRENT_USER Creates Additional Entries In Other Hives

I need help understanding the registry entries that Windows creates when I attempt to write keys to HKEY_CURRENT_USER by importing a .reg file. I have written an installer in NSIS that installs the ...
MatthewNYC's user avatar
0 votes
1 answer
135 views

Launching Excel Spreadsheet Containing COM Object Instantiation in VBA - From NSIS "Finish" Page - Gives Class not registered Error For Admin User

I am experiencing a strange occurrence when installing for a Standard user versus Admin. My installer requests "Highest" authentication level then proceeds to register COM dlls using a ...
MatthewNYC's user avatar
0 votes
0 answers
88 views

regasm from Framework versus Framework64? when one versus the other?

I built a COM enabled DLL in VB.NET that I need/want to be able to be able to use from Excel VBA. When I build the DLL and then attempt to use the DLL in an Excel Macro on the same workstation, ...
Tom Malia's user avatar
0 votes
0 answers
347 views

Registred library not found in COM part of reference manager window

I have registered a library with RegAsm.exe. The following commands are tested in PowerShell: C:\Windows\Microsoft.NET\Framework\v2.0.50727\RegAsm.exe /codebase /tlb C:\Users\mostafa.khodakarami\...
Mostafa Khodakarami's user avatar
2 votes
1 answer
85 views

Does RegAsm need a source operator?

I have been asked to review and edit, if needed, some scripts. I have entered the relevant part of this one below. I believe its correct, but I cannot figure out if the period at the beginning of the ...
Johann Boniek's user avatar
1 vote
0 answers
565 views

RegAsm : error RA0000 failed to load dll because it is not a valid .NET Assembly

I am facing a problem with installshield 2012 while registering the DLL using Regasm from exec task in MSBuild script. Its giving the below error: [Step 6/10] RegAsm : error RA0000 : Failed to load 'E:...
Naveen Aggarwal's user avatar
1 vote
0 answers
457 views

Using C# to register a type library from a given .dll

I've been using System.EnterpriseServices.Internal.Publish.RegisterAssembly('Path to assembly.dll') to register my assembly, but I need to create a type library and register that also. I've tried ...
Kevin's user avatar
  • 11
0 votes
0 answers
620 views

Registration COM-Interop (.tlb) including Assembly (.dll) references

I'm trying to register my Classlib.dll for using COM interop with the regasm.exe tool. In general this is not a problem. like this: > regasm.exe MyAsm.dll /tlb: MyAsm.tlb But now I use a .dll ...
Alexander Ellmann's user avatar
0 votes
1 answer
1k views

Regasm is not working / ActiveX component can't create object

I wrote a C# .dll in Visual Studio which I want to call from excel VBA. (I used this tutorial) On my Development PC where I set the settings in the Project properties for "Make COM-Visible", "...
Linus's user avatar
  • 21
2 votes
1 answer
258 views

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 ...
Bob.Seelbach's user avatar
0 votes
2 answers
301 views

How to run RegAsm /codebase with an InstallScript project?

I tried this question on the InstallShield forum and it hasn't gotten any love. My company has an InstallScript project (non-MSI), and we need to run RegAsm /codebase on one of our DLLs. I found ...
PaulFake's user avatar
0 votes
1 answer
112 views

.NET Library class in vba - multi level domain object

I'm using .NET Library class in Excel VBA. It works. I can compile and register it by RegAsm. Using the Intercaces in .Net and COM attributes like ([InterfaceType(ComInterfaceType.InterfaceIsIDispatch)...
mangood's user avatar
  • 67
0 votes
0 answers
195 views

Distribute C# DLLs including install COM-object

I have a C# with .NET 4.71 project and created a COM object with reference to another project. So by just creating the project with release configuration gives me some DLLs within the release folder ...
everydayXpert's user avatar
0 votes
1 answer
1k views

How to register assembly using custom action in WIX toolset

My Wix toolset installer installs many files, but only one of these I would like to register for COM interop. I have tried the heat automatic registration but can't get it to work, so am falling back ...
bgarrood's user avatar
  • 427
0 votes
1 answer
119 views

Reading config file from shell extension

I have a project that is set up as a shell extension with a SharpShell library. When I register it with regasm tool (with /codebase flag on) it works up until the point where I need to use the ...
okkko's user avatar
  • 1,020
1 vote
1 answer
128 views

Does a COM DLL have to be compiled and registered for each bit edition?

Is it OK for a COM DLL to be compiled as AnyCPU and work with both 32 bit and 64 bit applications? Yesterday I started writing a C# COM DLL so that my MFC project could use the DLL. The DLL itself is ...
Andrew Truckle's user avatar
0 votes
0 answers
297 views

Using a COM bridge for calling 64bit process from 32bit process - How to Enable the COM object to access hardware resources

I'm writing a C# WPF graphical interface that is required, by the client, to use a number of close sourced dependencies. Some of these dependencies do not have 64bit versions. However, there is a ...
ThandueL's user avatar
1 vote
0 answers
571 views

Using regasm with AnyCPU DLL for both 32 bit and 64 bit using Inno Setup

I have a C# COM DLL that has been compiled with the setting Any CPU. At the moment I have put this into the script: [Run] Filename: "{dotnet40}\regasm.exe"; Parameters: "MSAToolsGMailClassLibrary....
Andrew Truckle's user avatar
0 votes
1 answer
146 views

Efficient way to pass Bitmap into registered COM component

I have registered COM Class and interface written in .NET 2.0 . Now i am looking for a way to pass Bitmap object from WindowsForms .Net 4.5 application into COM component. When i try to do this code: ...
XLR8's user avatar
  • 87
0 votes
2 answers
774 views

Can`t register interface with regasm

Trying to register interface, using regasm I tried to play with AssemblyInfo.cs switching ComVisible, no luck. I tried signing it. Regasm always responds RegAsm : warning RA0000 : No types were ...
XLR8's user avatar
  • 87
4 votes
1 answer
769 views

Several short questions about COM .net assemblies, regasm, dll, tlb and guids

All question are related to a .net project dll in .net framework 2.0 that exposes itself as COM. 1) If we don't specify any GUIDs in the source code (typelib, classes, interfaces) who is generating ...
Eduard's user avatar
  • 664
0 votes
1 answer
110 views

PHP COM File Not found after RegAsm a COM dll

I Create a VB.NET COM Object. Register It with RegAsm and load it in PHP. On my Computer(WIndows 7) it work like a charm ! But On my Server Windows Server 2016 PHP COM class say File Not Found... ...
jfrag's user avatar
  • 3
1 vote
1 answer
347 views

How do I call method C# Dll method using RegAsm?

I created a C# Dll that use "Register for com interop" and I managed to register it using RegAsm: RegAsm.exe -tlb -codebase MathLib.dll After that I got the message: "Assembly exported to 'C:\Test\...
Android Programmer's user avatar
0 votes
1 answer
265 views

Distinguish COM dll from .NET assembly in batch files

I have a bunch of dlls in a folder, which are either COM dlls, or .NET assemblies. Now, I'm using something like this below to register the binaries: @echo off set argCount=0 for %%x in (%*) do ( ...
user2338150's user avatar
9 votes
2 answers
7k views

.NET Core 2.1 - How to create COM object and generate *.tlb file

I would like to build COM object in .net Core and then register by RegAsm. My .csproj file: <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType&...
Wojciech Nagórski's user avatar
0 votes
0 answers
199 views

C++ calling C# function that returns a Class Object

I have a class in C# public class RequestInfo { public string barcode { get; set; } public string title { get; set; } public string name { get; set; } } I am calling a C# function from C+...
Evan Camilleri's user avatar
2 votes
0 answers
365 views

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, ...
Luke's user avatar
  • 2,454
1 vote
0 answers
501 views

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....
pritesh dahivelkar's user avatar
2 votes
1 answer
225 views

Is any way register shell extension by Regasm.exe without codebase?

this is problem. I developed a shell extension of Shell Context Menus. (use SharpShell, enter link description here) I can register it by using regasm.exe with "/codebase" attribute. And without ...
李柏緯's user avatar
0 votes
1 answer
144 views

What is the best practise for making a COM server with a GUI?

Context: I'm working with some old robotics software which is able to get information from a COM object if it implements some predefined interfaces. Since this old software runs on Windows 2000, I ...
Daniël J's user avatar
  • 107
5 votes
1 answer
10k views

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 ...
Samra's user avatar
  • 1,833
1 vote
1 answer
1k views

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 ...
Edward Brey's user avatar
  • 40.6k
1 vote
1 answer
256 views

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....
Ian Boggs's user avatar
  • 522
1 vote
1 answer
518 views

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 ...
Dave's user avatar
  • 14.7k
0 votes
0 answers
156 views

How to make regasm use assembly redirecting?

I try to run regasm but it complains it cannot find given library. That is true because it does not exist, however for that reason I used assembly redirecting in app.config to point out which version ...
astrowalker's user avatar
  • 3,171
0 votes
0 answers
52 views

Quote From MSDN On RegAsm

I want to know what they really mean by this statement. Does it mean regasm.exe doesn't actually register types? Or, does it mean that you need to register every instance you make (which seems odd)? ...
Olivier10178's user avatar
1 vote
1 answer
720 views

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 ...
jooooooooota's user avatar
1 vote
1 answer
55 views

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 ...
Olivier10178's user avatar

1
2 3 4 5