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

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 this attribute the shell extension doesn't work. But…
2
votes
1 answer

Register a COM dll in the GAC with WiX

Greetings all, I'm working on a WiX installation script for my program. I need to install a C# dll to the GAC and then register it. So, I mark the file with Assembly=".net" so that WiX GACs it for me, and then I have a deferred custom action, set…
Paul Accisano
  • 1,416
  • 1
  • 14
  • 25
2
votes
2 answers

How to register a DLL with RegAsm in Build EventS VS2013

In every compile, output dll is changed in my program and after every compile, I must register dll again. I can register it via Visual Studio Command Prompt as regasm mydll.dll. But I dont want to do it everytime and I want it as automatically.…
onur
  • 374
  • 4
  • 19
2
votes
1 answer

How to register a legacy typelib (.tlb) on Windows 10?

I have Visual Studio 2015 running on Windows 10 and need to register a legacy type lib (.tlb). From the posts I've found, regtlibv12.exe is the tool for this. However, I can't find it under C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\ or anywhere…
John M.
  • 2,642
  • 7
  • 26
  • 55
2
votes
0 answers

How to make Excel references non-absolute using REGASM32 (early binding)

I have a requirement to create a new installed for an Excel add-in. I've created many of these and this question is not necessarily about the install building process. It is about how to properly reference a .dll in Excel so that it can be…
2
votes
0 answers

Need to move .Net Assemblies to Program Files after Windows Update

I have a legacy windows client application that uses a several .Net assemblies (I created), one with a COM wrapper. The client application resides in a root drive subfolder (c:\somefolder...). Recently after a Windows update the application could…
rsoch
  • 23
  • 5
2
votes
1 answer

using regasm for an framework 4.0 assembly located on UNC share

I am trying to register a .Net 4.0 compiled binary using regasm utillity. This ComInterOp assemply has to be deployed on a network share, and trying to register from the share fails with the error "Cound not load file or assembly or one of the…
user391053
  • 21
  • 1
  • 3
2
votes
0 answers

What is the issue with using the nant script to run msbuild to register the assembly?

I'm running MSBuild from a NAnt script. When it tries to register one of my assemblies for com interop, the script stops like it's stuck. If I run regasm.exe on the assembly, it succeeds. Even if I run MSBuild itself from the command-line with the…
Meidan Alon
  • 3,074
  • 7
  • 45
  • 63
2
votes
2 answers

regasm and tlb (registering a .NET library for COM interop)

I have .NET assembly with one public class and several private classes. I am trying to register it for COM interop so that I can call it from VBA, using the following command: regasm /tlb foo.dll /codebase Subsequently, when I open up the .tlb file…
mcoolbeth
  • 467
  • 1
  • 6
  • 19
2
votes
2 answers

COM object written in C# - Get class, but not methods

I have written a simple COM object in C# with only one method, which is called GetMac. I can't get it to work. I am trying to access it from a legacy Borland C++ Builder 4 (BCB4) application, which I know is old, and not used much anymore, but I…
JoeMjr2
  • 3,804
  • 4
  • 34
  • 62
2
votes
1 answer

A .tlb file must be registered?

I have a com interop c++ dll that is loaded in c++ throught the .tlb file generated in c#. When I run in my computer it works fine but when I run in a computer that just got formated it gives: WindowsError: exception code 0xe0434f4d Do I have to do…
aF.
  • 64,980
  • 43
  • 135
  • 198
2
votes
1 answer

Register tlb COM with regasm

I have .NET assembly. I am trying to register it for COM interop so that I can call it from VBA, using the following command: regasm foo.dll /tlb:foo.tlb /codebase When I did it on my pc, I could use it without any kind of problem. The code in VBA…
Muriel
  • 63
  • 1
  • 1
  • 5
2
votes
0 answers

BHO Extension for IE11 on Windows 64-bit registering but not working

I have been going at this for days. I have created a IE add-on that registers and works great on 32-bit IE. My problem occurs when I try to get it running on 64-bit Windows 7. As I found out, IE on 64 runs both 32 and 64. So trying to run my add-on…
2
votes
1 answer

How to make VSIX installer to register assembly automatically

I have developed a custom code generator and deploy it via a VSIX, the problem is I should register assembly via regasm.exe after installing VSIX, but I have seen some projects such as DSLTool with custom code generation that registers…
Reza
  • 18,865
  • 13
  • 88
  • 163
2
votes
1 answer

MSBuild built assembly can not be registered, RegAsm (error RA000); Exact same .csProj with Visual Studio 2010 creates valid assembly?

I have a simple C# project when built with MSBuild it builds an assembly that can't be registered with RegAsm (error RA000). The exact same .csProj built with Visual Studio 2010 creates valid assembly and RegAsm registers successfully? I am using…
kevinwaite
  • 613
  • 1
  • 8
  • 20