regasm

Why does regasm.exe register my c# assembly with the wrong GUID?

I've got a c# assembly which I'm invoking via COM from a Delphi (win32 native) application. This works on all the machines I've tested it on, except one. The problem is that the Delphi application gets "Class not registered" when trying to create the COM object. Now, when I look in the registry under HKEY_CLASSES_ROOT\DelphiToCSharp\C...

Registering assembly for COM interop from nant

Hi, I'm running msbuild from a nant script, the problem is that when it tries to register one of my assemblies for com interop, the script just stops, like it's stuck. If I run regasm.exe on the assembly it succeeds. Even if I run msbuild itself from the command-line, with the exact same parameters, it builds successfully. Any ideas o...

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? ...

How to unregister my .net assembly when it's no longer in the same location?

I have a dll that's registered for com interop, so under HKLM\Software\Classes\CLSID[my guid]\InprocServer32[my version no]\Codebase it has the path of the registered dll. However, I've rearranged my folder structure so that path is no longer correct. Is there a way of unregistering that dll without putting it back, then unregistering, t...

Calling .net assembly from vb6 results in runtime error 424

Hi Everyone, I'm running into some trouble calling a .net assembly from vb6 and was hoping SO could help. In VB.net I built a ComClass and kept the default constructor and GUIDs. When deploying, I REGASM.exe the dll, which is located in the same folder as the VB6 exe. The .net dll references two other .net dll's, both of which are ...

C#: Regasm generating registry entries for every class in my COM DLL?

Hey everyone, I'm writing a class-library (IE BHO) in C# and currently wrangling with the large volume of what I think is junk output coming from REGASM's generated registry keys. The short version is this: I only want to expose a handful of classes (currently: ONE class) to IE (and the rest of COM). Only one class has the ClassInterf...

what is difference b/w RegAsm.exe and regsvr32 ?? How to generate a tlb file using regsvr32??

Hi Can any body tell me what is diff between regsvr32 and RegAsm and My Dll is C# dll so how can i import the classes to c++. ...

DllRegisterServer for C# dll?

Is there an equilivant to DllRegisterServer for C# dll's? I am creating a COM component and I would like to have some custom code run when I regasm the dll. ...

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? ...

using .NET Assemblies in Delphi

I am currently required to open and use a .NET assembly in delphi. The Assembly that i am trying to use also has an assembly of objects it is using. With the object assembly i was able to use regasm to create a type library. I was also able to assign a SN and register it with the GAC. Now with the main assembly i am tyring to use i...

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 explicit interface for the COM interop. It's all done dynamically. I run regasm.exe /codeb...

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 object is created in the VBA, the reference that is returned is to the wrong object, so the ne...

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. <No system message defined> severity: SEVERITY_ERROR, facility: <Unknown Facility> ($80131522) The COM Class is a C# class registered with RegAsm. What does this error mean? Edit: See http://www.dotnet247.com/247reference/...

Regasm and Com Interop false negatives

Hi 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 interop" (marked project as Register for COM interop in the project properties). Even the sim...

Registering a winform usercontrol as a COM server

I am trying to register a winform user control as a COM Server so my MFC applications can use them. The winform control is written in C++/CLI and uses an unmanaged native dll. I want to make use of .net's terrific Interop services to register this user control as a COM server. [ProgId("MyAx.MyAxControl")] [ClassInterface(ClassInter...

C# COM Interop Library

Hey all, 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 functionality in C# and I want to expose this to the existing VBA application through COM, ...

How does .NET/COM work with multiple versions registered via Regasm?

I have a .NET DLL (that happens to be written in C++/CLI). Parts of it I want to expose via COM. I do this and register it using "regasm my.dll /codebase". So far so good. But then I change some things and the version number of the assembly changes plus I move the dll to a different folder. I register it again and look at my COM obj...

Unable to call c# code from vbscript - ActiveX error

Hi, i am trying to call a method i have written in c# from vbscript. I have followed just about all of the instructions i can find on the web and am still having problems. Specifically i am getting the error, ActiveX component can't create object, Code: 800A01AD. So far i have done the following.. 1] Set ComVisible(true) 2] Registere...

Problem registering a dll - Access Denied

When trying to run regasm in Win2008 Server: regasm "C:\Program Files\FooProg\Bar.dll" /tlb:"C:\Program Files\FooProg\Bar.tlb" I get the following error: RegAsm : error RA0000 : An error occurred while saving the exported type library: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) what does this m...

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 as well? ...