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
3 answers

Is there a way to sign a .CS file which was created using Notepad and compiled using CSC command?

I am creating an ActiveX DLL assembly. I have followed this article. As the article has mentioned, I have created a .cs file (using notepad) and manually compiled it by pasting the file under \WINDOWS\Microsoft.NET\Framework\v2.0.xxxxx and running…
variable
  • 8,262
  • 9
  • 95
  • 215
1
vote
1 answer

What does “Register for COM Interop” actually do? Q2

What exactly does the VS project option "Register for COM interop" actually do? Because when I build my library with this option enabled I'm able to view it in the COM tab inside the VS Add Reference screen. But if I build without this and then run…
eduardo.bbs
  • 159
  • 1
  • 8
1
vote
0 answers

Regasm COM visible assembly on network drive using framework 4

I've got a v4.0 library that needs to be COM visible as it will be called from a Delphi application. Using Regasm I get the following error: RegAsm : error RA0000 : Could not load file or assembly…
user2311022
  • 21
  • 1
  • 4
1
vote
1 answer

How to use dll as an add-in for a different machine?

I have created an excel plug-in in C#. It uses C++ dll native code using dllimport. It works fine on my local machine. Now I want to use it @ another PC/client PC. I have tried regasm also. I registered succesfully like…
Girish Gupta
  • 1,241
  • 13
  • 27
1
vote
1 answer

.Net DLL registered via RegAsm loads even if the DLL is renamed. How come?

Our testers are reporting some strange behaviors. We are registering some COM-visible .Net 2.0 components using RegAsm. For some reason the testers renamed the registered DLL and the strange thing is that the application keeps loading all the…
Patrik B
  • 151
  • 1
  • 13
1
vote
1 answer

VB6 calling .NET 4.0 DLLs on a network share

I have a VB6 app that calls a number of .NET DLL's, all that reside in the same folder. Until recently, the .NET DLL's all used Framework 2.0, and I used CASPOL and REGASM to trust and register the DLL's for use by the VB6 app. I recently converted…
jtaylor___
  • 609
  • 1
  • 6
  • 14
1
vote
1 answer

Regasm and Com Interop false negatives

I'm attempting to expose our library via COM but seem to be fighting the tools more than the actual problem. Regardless of how I write my COM exposed class I get the warning: "XXX.dll does not contain any types that can be registered for COM…
soren.enemaerke
  • 4,770
  • 5
  • 53
  • 80
1
vote
3 answers

CoCreateInstance takes a lot of time

After registering(RegAsm) my C# COM visible class, I see that CoCreateInstance(__uuidof(myclass)) takes a lot of time only for the first time, subsequent attempts in the same client process are resolved instantly. Any idea why is it taking…
Nitin Chaudhari
  • 1,497
  • 16
  • 39
1
vote
1 answer

Not able to register dll using WIX installer

I have my contextmenu shell extension dll. I have used Heat.exe to create component for my dll and in install it works completely fine. But I am not able to register my dll using wix installer. I have tried various options and nothing is…
1
vote
0 answers

unable to register custom Dll using regasm

I have a custom dll which used to register in winXP , now i want to use the same in win7 but i am not able to register with regasm . I get an error saying one of the dependencies is missing . Although i have added that expilcitly and it is also…
1
vote
1 answer

Easiest way to make .NET DLL visible to COM?

I have a proprietary .NET DLL which I would like to use in a COM client. Currently when I use regasm it says: warning RA0000 : No types were registered Since I don't have the source code I can't set the classes to ComVisible or whatever else is…
CJ7
  • 22,579
  • 65
  • 193
  • 321
1
vote
2 answers

COM: OLE Viewer unable to create instance of class

Using OLE/COM Viewer I get the following error (when expanding my registered class) CoGetClassObject failed. severity: SEVERITY_ERROR, facility: ($80131522) The COM Class is a C# class registered with…
Ries
  • 2,844
  • 4
  • 32
  • 45
1
vote
1 answer

Register a dll that references multiple dlls

Ok I have 2 questions and I'm in a pickle here and have been for a week. Important - No application will build this or run it. It will be a single client side dll (that references several other dll's) that will be placed in specific folder and I…
Godrules500
  • 467
  • 6
  • 25
1
vote
2 answers

Wrong Object Returned from COM Callable Wrapper

I have just made an update to a dll that is called from VBA within Powerpoint. All development went fine, but when I tried to deploy on another users machine I get a problem that I have no idea how to debug. What happens is that when the .Net…
Modan
  • 775
  • 4
  • 14
1
vote
1 answer

How do I properly register a .NET assembly during an installation without calling RegAsm?

I have a .NET COM-visible out-of-process server, let's call it Server.exe. I need to be able to register it on systems that may have different versions of the .NET framework installed, so I'd like to avoid calling RegAsm by it's full name (which…
Wug
  • 12,956
  • 4
  • 34
  • 54