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.
233
questions
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. ...
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....
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 ...
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 ...
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 ...
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(&...
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 ...
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: "{...
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 ...
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 ...
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 ...
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;
...
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 ...
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 ...
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, ...
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\...
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 ...
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:...
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 ...
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 ...
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", "...
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 ...
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 ...
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)...
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 ...
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 ...
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 ...
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 ...
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 ...
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....
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:
...
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 ...
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 ...
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...
...
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\...
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 (
...
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&...
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+...
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, ...
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....
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 ...
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 ...
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 ...
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 ...
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....
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 ...
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 ...
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)? ...
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 ...
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 ...