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

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 segment of the code that requires that it be…
ThandueL
  • 33
  • 1
  • 1
  • 4
0
votes
1 answer

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: Type type = Type.GetTypeFromCLSID(clsid); …
XLR8
  • 87
  • 7
0
votes
2 answers

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 registered My project is class library , .net 4.5. My…
XLR8
  • 87
  • 7
0
votes
1 answer

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... I check regedit on the server and everything should…
jfrag
  • 3
  • 2
0
votes
1 answer

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 ( set /A argCount+=1 ) if not %argCount% == 1 ( …
user2338150
  • 479
  • 5
  • 14
0
votes
1 answer

Regasm.exe fails in setup when launched from msi on x64 systems

I have an issue with an installation. The installation runs a command line option to regasm.exe a .net com dll with the /codebase option. When I run the installation (built by installshield) from the Setup.exe then everything works fine. When I…
Sam Holder
  • 32,535
  • 13
  • 101
  • 181
0
votes
0 answers

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++ TResult.RequestInfo RequestInfo(); I…
0
votes
1 answer

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 want to use DCOM to (try to) avoid having to…
Daniël J
  • 107
  • 10
0
votes
2 answers

Assembly not listed in VS10 Object browser

I have a VB.Net project which needs to use a third party DLL for which there also an interop assembly. So I have something like this: Hummingbird.DM.Server.Interop.PCDClient.dll PCDClient.dll I tried adding the reference to the interop directly in…
udeleng
  • 157
  • 5
0
votes
0 answers

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 should be used. It seems regasm ignores…
astrowalker
  • 3,123
  • 3
  • 21
  • 40
0
votes
1 answer

RegAsm: Method 'LoadContent' in type 'MyAlgorithms.MyAlgorithm' from assembly 'A' does not have an implementation

I have the following types(see code part below). It is compiled but RegAsm gives the following error: " Method 'LoadContent' in type 'MyAlgorithms.MyAlgorithm' from assembly 'A' does not have an implementation. " Has any idea why? If I would not…
BKate
  • 3
  • 1
0
votes
0 answers

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)? Etc..
Olivier10178
  • 191
  • 11
0
votes
1 answer

Read whether .NET library is COM registered

I have a library that is to be registered for COM Interop: %Windir%\Microsoft.NET\Framework\\regasm MyTest.dll %Windir%\Microsoft.NET\Framework64\\regasm MyTest.dll Now before doing so, I only want to find out whether the library…
Alexander
  • 19,906
  • 19
  • 75
  • 162
0
votes
1 answer

How can i determine which of my product's .net assemblies are registered, when i have several on my pc?

I have the code for various versions of a software product I work on on my machine. The product includes one or more assemblies that are registered for com interop. How can I determine which one is currently registered?
Rory
  • 40,559
  • 52
  • 175
  • 261
0
votes
2 answers

Can I install. NET COM library located on a network shared folder?

COM Server registered with reg asm located in a network folder not working properly. When you try to create the object gets the error "Automation error". Everything works correctly if the dll is located on a local disk. Additional Information: COM…
stanik
  • 75
  • 6