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

RegAsm .net 4 Error, Could not load itself?

i just cant register some dll files that has been built with .net framework 4 in some systems that both client and extended versions of .net framework 4 is installed, when i copy regasm.exe from .net framework 4 folder and paste it among some dll…
Farzad Karimi
  • 770
  • 1
  • 12
  • 31
1
vote
0 answers

Register a signed .NET assembly in the "COM" world

I trying to get a .NET DLL to be exposed as a COM class, too, and be accessible from non-.NET languages like VBA, C++ or Delphi. I created my C# DLL just fine, and I was able to register it on my test server as a COM…
marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
1
vote
1 answer

error RA0000 : Failed to load '~\MyDocumentFetch.dll' because it is not a valid .NET assembly

I am facing a problem while registering the DLL using Regasm from exec task in Nant script. Its giving the below error: RegAsm : error RA0000 : Failed to load 'C:\MyDir\stage\MyDocumentFetch.dll' because it is not a valid .NET assembly Here is the…
user1711034
  • 31
  • 2
  • 3
1
vote
0 answers

RegAsm warning: IUnknown was substituted for the interface

I created a C# library that uses existing COM types and expose some functions via COM. I added the reference to the existing TypeLib from the Reference Manager in Visual Studio 2013. It automatically creates the interop assembly and embed interop…
1
vote
2 answers

How to create an C#.Net DLL to use in JavaScript

I have created a .Net DLL with few simple classes. I have registered the DLL using RegAsm and I got a message that types were registered successfully. RegAsm Syntax Used : C:\Windows\Microsoft.NET\Framework\v4.0.30319>RegAsm.exe…
Vikineese
  • 61
  • 1
  • 8
1
vote
2 answers

.NET: are regasm and caspol dependent on which user is logged

When using regasm and caspol to register and grant trust to assemblies, will it matter under which user account these utilties are executed? Could there arise a situation where assemblies are registered and/or granted trust only for certain users on…
CJ7
  • 22,579
  • 65
  • 193
  • 321
1
vote
1 answer

COM Codebase Location - How to pick which version to use?

I have needed to modify code in a C# DLL and use it within a C++ application. I am not savvy at all in C++, so if something isn't clear let me know. I've registered the C# assembly using: regasm file.dll /tlb:file.dll /codebase However, when I try…
Puzzled
  • 187
  • 10
1
vote
1 answer

When I use regasm, all parameters are typed as inputs? Can that be changed?

I am using a C++ application to call a c sharp dll. Regasm turned my function from having two character arrays and returning an int into a function with two BSTRs and a long pointer as parameters. The two BSTRs were labeled as inputs and the long…
billetch
  • 31
  • 2
1
vote
0 answers

Regasm.exe only works in Debug output folder, not install folder

I am writing an add-in dll in c#, VS2012, Win 7 x64. Debugging has been fine; VS registers the dll at the end of building and I've also set up a batch files in my project folder to register and unregister the…
JohnnyG
  • 11
  • 1
1
vote
1 answer

Creating a regasm'ed object in javascript

For reasons I won't get in to, I have to create an object from a .NET dll in javascript. The browser I'm using is some ridiculous proprietary thing, but that means it has no security settings, so I'm 100% that's not the issue, before everyone…
NickGlowsinDark
  • 337
  • 1
  • 6
  • 17
1
vote
1 answer

.net regasm question

Lets say we have this scenario a setup that deploys a .net com dll and runs regasm on it, this setup has no uninstall so unregister Will never be called.. And you can run the setup over and over again.. Is there any danger in doing so?? What would…
Peter
  • 37,042
  • 39
  • 142
  • 198
1
vote
0 answers

System.Windows.Forms.dll COM Interop by regasm, missing a couple of classes

i have used regasm from .NET interop tools to provide the System.Windows.Forms.dll classes as COM objects but there are a couple of classes missing, for example the class OpenFileDialog, although regasm registered it successfully. Does anyone know…
FalloutBoy
  • 964
  • 1
  • 9
  • 22
1
vote
1 answer

RegAsm Unregister Issue

Below, the method i' ve created is working for registering. But i get: "regasm : warning ra0000 : no types were unregistered" for unregistering. private static void ExecuteRegAsm(string comObjectPath, string typeLibraryName, string…
Seyda Güney
  • 55
  • 1
  • 10
1
vote
1 answer

What account do COM+ components run under when regasm is used?

What account do COM+ components run under when registered via the regasm tool? I didn't notice any command parameters for regasm to identify the account. Given regasm requires admin privileges to run, I'm assuming COM+ components run w/admin privs…
Philip
  • 339
  • 3
  • 12
1
vote
1 answer

Unable to Registering dll at new path in dev machine

I'm not a COM Interop expert so I haven't been able to figure out the last step to deploy my application. Few pieces of information Using : VS 2010 C# and MS Access 2010 VBA Developing on: Windows 7 64 bit Target Env: Windows XP 32 bit I've written…