473,405 Members | 2,160 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

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 20 '05 #1
0 744

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

Similar topics

1
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....
2
by: me | last post by:
What is the downside of Cominterop? is it good practice? what does it do to memory? Thanks
2
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...
1
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...
2
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...
0
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:
4
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();...
3
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...
1
by: Douglas Marquardt | last post by:
Hi All: As the subj says.... I am trying to do this: Dim prms As BTIIFCORE.IFProperties prms = New BTIBSODLL.Properties BTIIFCORE is a VB6 DLL that contains a public not createable class...
1
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...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.