473,698 Members | 2,450 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 1152

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

Similar topics

1
2431
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
1849
by: me | last post by:
What is the downside of Cominterop? is it good practice? what does it do to memory? Thanks
2
1263
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
1826
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
1526
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
2210
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
759
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
2979
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
1365
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
9160
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
9029
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...
1
8897
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8862
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6521
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5860
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
4370
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...
1
3050
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
3
2002
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.