473,729 Members | 2,359 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

COMInterop problem !

Hi !

[INTRODUCTION]

I have developed a .NET library that references another .NET library.

MyLibrary -> OtherLibrary

I then create a COMInterop wrapper assembly to use it from a VB6 project:

MyWrapper -> MyLibrary -> OtherLibrary

They are all signed with the strong key (sn.exe) and I followed all the
procedures to register the assemblies:
regasm MyWrapper
regasm MyLibrary
regasm OtherLibrary
I also added them to the GAC, for possible use by other applications:
gacutil /i MyWrapper
gacutil /i MyLibrary
gacutil /i OtherLibrary


To help reference the MYWrapper class, I got the TLB formthe assembly
(either regasm or tlbexp do it).

Opened up the VB6 project, added the references, put in the code to use the
class and it worked.

Then I copied the assemblies to another PC (with all the pre-requisites like
..NET Framework and such), and proceeded to register the assemblies, like I
did on my PC, but...

[PROBLEM]

When trying to register MyLibrary with regasm, the following error shows up:

"The located assembly's manifest definition with the name OtherLibrary does
not match the assembly reference."

I have tried everything I could think of, checking all the references in the
..NET assemblies project, removing and re-adding the references and making
sure they were right. I can't think of anything else.

Can someone help me, please ?

Thanks in advance for your time and any suggestion.
--

*************** *************** ***********
Mário Sobral

www.MarioSobral.com
www.CBRWorld.net
www.PerformanceTotal.com
*************** *************** ***********

Nov 15 '05 #1
0 1155

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2434
by: Anatoly Volodko | last post by:
Hi All, I have installed .NET Framework v.1.1.4322 (with VS .NET 2003) on new operating system (any Windows version - 98, ME,2000, XP,2003 ). Thus, the Framework v.1.0.3705 is NOT installed. In this situation all samples in "..\FrameworkSDK\v1.1\Samples\Technologies\Interop" do not work.
2
1853
by: me | last post by:
What is the downside of Cominterop? is it good practice? what does it do to memory? Thanks
2
1264
by: Paul Arun | last post by:
When I'm using the COM components in c# I get the Exception: 'System.Runtime.InteropServices.COMException' occurred in WindowsApplication1.exe Additional information: COM object with CLSID {BBBECA01-C443-11CF-8698-00805FA84482} is either not valid or not registered. But the compoent is registered and I can use in VB 6.0 application.I can refer the .tlb file of component through VS.NET IDE in the Project,
1
1830
by: Nadav | last post by:
Hi, Introduction: **************** I have created a .NET COM interop Assembly, this assembly references another COM object. The Problem: ***************** To enable registration of the .NET assembly as a COM object I have generate a 'Strong Name' and associate it with my assembly, upon 'Strong Name' association I get 'Assembly generation failed -- Referenced assembly 'Interop.SALLib' does not have a strong name', this happens because...
2
1530
by: Ariel Gimenez | last post by:
Hi, maybe some of you can give me a hand with this, I have a dll written in VB 6 but i havent the source code of it. In Visual Basic 6 this dll instanciates with createobject and the method was accesed in this way: mydll.method "1", "2", "3", True Now in Asp.net when i add the reference and try to call it this way: mydll.method("1","2","3",true);
4
2214
by: Ariel Gimenez | last post by:
Hi in my app im working with excel using cominterop when fished my work with excel i execute this code oWB.Close(null,null,null); oXL.Workbooks.Close(); oXL.Quit(); System.Runtime.InteropServices.Marshal.ReleaseComObject (oXL); System.Runtime.InteropServices.Marshal.ReleaseComObject (oSheet); System.Runtime.InteropServices.Marshal.ReleaseComObject (oWB);
0
760
by: Mário Sobral | last post by:
Hi ! I have developed a .NET library that references another .NET library. MyLibrary -> OtherLibrary I then create a COMInterop wrapper assembly to use it from a VB6 project:
3
2982
by: Drwtsn32 | last post by:
Hi Guys, I'm ripping off all of my hair soon ;-) I'm trying to do a very simple C# form accessible from COM client like VBScript. I would like to display the form and update the form during the intepretation of the vbscript. Does anyone know of any good example that could point me to the right direction.
1
1366
by: info | last post by:
Hi I've an C# .NET 2.0 Windows Forms Application which is placed in an DLL. This DLL is instanciated from an non .NET enviroment via ComInterop. This works fine. but I need to put the wohle .NET Application in an second thread so that both applicaitons .NET and non .NET are responsive.
0
9427
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9284
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8151
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6022
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4528
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4796
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3238
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2683
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2165
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.