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

Why would some classes in an assembly be exposed to to COM but not others?

I am struggling to produce a Class Library to be consumed by VBA. I have gotten one class in the Project to work, but the second does not seem to be being registered. If I use VBS to test, CreateObject("Libname.Class2") works, but…
mbza
  • 25
  • 4
0
votes
1 answer

.net COMVisible/ComInterop - can you use a type without registering it?

My first attempts at this have failed but I'm hoping it is possible. If I have a class like this that is COM registered: [ComVisible(true)] public interface Resolver { object Resolve(string…
Andrew
  • 691
  • 6
  • 17
0
votes
0 answers

C# dll registration with regasm warning RA0000

I have C# dll and want to use it in my delphi code, before that the dll must be registered with regasm. I have been trying to register this dll but constatntly getting below warning- Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft…
Shanu Mehta
  • 182
  • 1
  • 14
0
votes
1 answer

c# register dll using the file path (RegistrationService.RegisterAssembly)

I want create a simple console application to automatically register a dll. After some research I found this piece of code: public static bool Register_Dlls( string dllPath ) { Assembly asm = Assembly.LoadFile( dllPath ); RegistrationServices…
baru
  • 401
  • 3
  • 9
  • 29
0
votes
0 answers

Registering .net 4 dll on Clients Machines

I have some programs that some of them built with vb6 and others are .net and all of them runs in many client machines, vb6 programs uses some of the dlls of .net programs and because of this, i always have to register these .net dlls on client…
Farzad Karimi
  • 770
  • 1
  • 12
  • 31
0
votes
1 answer

Deploying a C# COM dll using an installer

I have made a C# class library, which uses other dll's made by others in the company, for COM interop. It is being used with MS Excel 2013 and works fine on my development machine. To test it on other machines, i have copied the output (dll's and…
Anima
  • 1
0
votes
1 answer

Error (0x80070002) when dll is not in the same path from registration

First, the question is similar to Deploying .NET COM dll, getting error (0x80070002) but it didn't answer my problem. I have build a dll (.net4) that I use with VBA in Excel / Word. Principle: I register the dll with regasm.exe from a temporary…
Maxime Porté
  • 1,034
  • 8
  • 13
0
votes
2 answers

Unable to Create the instance of COM class using Activator.CreateInstance

I am trying to create the com object using following code: Type testlib = Type.GetTypeFromProgID("TestComApp.TestApp.TestClass"); dynamic comObj = Activator.CreateInstance(testlib); But getting the error : An unhandled exception of type…
Simsons
  • 12,295
  • 42
  • 153
  • 269
0
votes
0 answers

How to register a COM dll which uses MSXML?

I got a COM dll which uses MSXML and it is developed in C#.net and i want to use that in delphi as a type library. when i try to register that DLL using REGASM it is throwing error as below Error: Type library exporter cannot load type…
abhayk
  • 287
  • 1
  • 2
  • 15
0
votes
2 answers

Why would you need to run regasm and caspol on a .net component more than once?

Why would you need to run regasm and caspol on a .NET component more than once? I have a COM client that uses a .NET component residing on another machine. Consequently I need to run regasm and caspol on this .NET component. What could cause there…
CJ7
  • 22,579
  • 65
  • 193
  • 321
0
votes
1 answer

Avoid loading external references when registering a .Net assembly

We have a .Net DLL that is available via COM interop which acts as a wrapper for a 3rd party's .NET library. This 3rd party library isn't needed in the vast majority of situations, so isn't included in our setup, but our wrapper DLL is. The problem…
Deanna
  • 23,876
  • 7
  • 71
  • 156
0
votes
0 answers

Using a .NET DLL in JAVA SCRIPT - Registered through REGASM

I have registered a .NET DLL using REGASM and registration is successful. I'm able to create object of the classes and use them in my Javascript. The class I consume i sa non static one. This is how I'm using and it is working, var objDP = new…
Vikineese
  • 61
  • 1
  • 8
0
votes
2 answers

vsdraCOM causes the codebase path to point to build path

We have a couple of dlls we like to install using an msi. In our test environment, we are using regasm -codebase to register the dlls. As I understand from googling, this is accompliched in an msi project by setting the register property to…
0
votes
1 answer

COM Enabled .NET User Control

I have created a COM enabled .NET User Control and am wondering what is the best way to deploy this to users to use the control in a web page ? Is cab the way to go with this ? I understand that I will need to regasm the control on the user's…
G-Man
  • 7,232
  • 18
  • 72
  • 100
0
votes
2 answers

Do I need to un-register previous DLL before registering new version

I have a .Net DLL which I want to register using regasm. I am fairly new to C#. Lets say that I have to upgrade my DLL and the old DLL is already registered. Do I need to un-register the old DLL before registering the new one? Thanks,
Newbee
  • 1,379
  • 2
  • 16
  • 36