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

Registering with the Com Interop option in Visual Studio works but calling Regasm directly doesn't

I'm trying to create a 32-bit COM object in .NET 4.0. The consumer of the COM object is a simple JScript. When I have the checkbox set to true for Visual Studio's "Register for COM interop" setting, everything works fine. I'm able to create the…
Nathan R
  • 227
  • 2
  • 11
2
votes
1 answer

C# COM Interop Library

I am currently porting a legacy VBA application to a .Net application. During this process the users of the existing VBA application need to have some features added. So instead of coding them in VBA & then later in C#, I’ve wrote the new…
BBurke
  • 331
  • 1
  • 6
  • 18
2
votes
2 answers

regasm /codebase works but file generated with regasm /codebase /regfile does not

I have a COM visible dll suitable for 32 and 64 bit architechtures that I use to add a menu item to the windows explorer context menu. Using "regasm myassembly.dll /codebase" I register the dll and see the new menu item. Great. Unregistering works…
Coder1095
  • 828
  • 10
  • 25
2
votes
1 answer

How to load a DLL from a shell extension?

I have written a small shell extension, the stub works, but want it to read some info from an SQLite database. SQLite needs 2 DLLs: System.Data.SQLite.dll: managed-only core assembly SQLite.Interop.dll: native interop assembly In the past, I have…
Nicolas Raoul
  • 58,567
  • 58
  • 222
  • 373
2
votes
0 answers

COM registration failed because needs administrator permissions

I am getting errors while registering a COM component. From command line I am getting the following error RegAsm : error RA0000 : An error occurred while writing the registration information to the registry. Administrator permissions are needed…
TrustyCoder
  • 4,749
  • 10
  • 66
  • 119
2
votes
3 answers

run regasm.exe on a .net com class

how to run regasm on a .net com visible class from installshield? I can manually register by calling the regasm.exe on the dll but when i set the '.net Com Interop' to 'Yes' in the installshield project i get an error -6210.
TrustyCoder
  • 4,749
  • 10
  • 66
  • 119
2
votes
3 answers

Overloads in COM interop (CCW) - IDispatch names include suffix (_2, _3, etc)

I have a managed assembly containing a few classes, and those classes have overloaded methods. I expose the assembly to COM/IDispatch callers via [ComVisible(true)] ..and also setting the proper Guid, on the assembly itself. I do not define an…
Cheeso
  • 189,189
  • 101
  • 473
  • 713
2
votes
2 answers

c# excel dll - can't add a reference to the specified file - regasm

When deploying and registering a .Net Excel.dll on another computer, I get an error Can't add a reference to the specified file when attempting to add reference to DLL in VBA editor. I have created the Excel.dll in C# in Visual Studio that runs fine…
user1680643
  • 21
  • 1
  • 3
2
votes
2 answers

Remotely run Regasm?

I have a C# COM component that needs to be pushed out & registered to a remote computer. Does anyone know if this is possible via the Regasm?
Kyle
  • 17,317
  • 32
  • 140
  • 246
2
votes
5 answers

Unable to run RegAsm: Error related to access to the Registry

I have a C++ project that calls RegAsm in the pre-build event for a couple of assemblies. The pre-build event fails with following error: Error 1 error RA0000 : An error occurred while writing the registration information to the registry. You must…
ashtee
  • 993
  • 1
  • 7
  • 10
2
votes
2 answers

regasm registry error

I enter this: regasm COMTest.dll /tlb:COMTest.tlb /codebase COMTest And I get the following error: An error occurred while registering the exported type library: Error accessing the OLE registry. (Exception from HRESULT: 0x8002801C …
Graham
  • 7,807
  • 20
  • 69
  • 114
2
votes
1 answer

How can I determine if my DLL is being registered or executing?

I have an IE add-on I'm developing in C# VS2010 .NET4. It seems that when the DLL is registered (ie installed) it executes the main constructor, and from there a lot of code that has no business running at that point in time. Is there a way I can…
Vaelek
  • 190
  • 10
2
votes
1 answer

Can I do RegAsm of .Net2 dll with .Net4 RegAsm.exe?

Can I do RegAsm to a .NET 2 dll with .Net4 RegAsm.exe? I have only .NET 4 installed on my machine and I need to do RegAsm to a .NET 2 file.
Dor Cohen
  • 16,769
  • 23
  • 93
  • 161
1
vote
1 answer

RegAsm dll .net2.0 to .net4.0

I have a dll that registers fine using .Net2.0's regasm, but when attempting to register with a .NET4.0 regasm, I get the error "Could not load file or assembly 'FILENAMEHERE' or one of it's dependencies. Operation is not supported. (Exception from…
steventnorris
  • 5,656
  • 23
  • 93
  • 174
1
vote
0 answers

How to register a COM-visible assembly in HKCU (without MSI)

It appears that regasm.exe is only capable of registering a COM-visible assembly in HKLM, for the whole system. Is there a way to do it for the logged-in user only, without an MSI installer? I've considered using regasm to dump a .reg file, and…
Mark McGinty
  • 756
  • 7
  • 13