PC Review


Reply
Thread Tools Rate Thread

COMInterop problem !

 
 
Mário Sobral
Guest
Posts: n/a
 
      23rd Feb 2004
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
*****************************************





 
Reply With Quote
 
 
 
 
Lifeng Lu
Guest
Posts: n/a
 
      26th Feb 2004
Did you installed the same version of .Net framework on both machine, and
copied all assemblies you built to the targetMachine?

You might want to recompile them. Before that, make sure that you clean up
all the old version of those assemblies from GAC on both machines.

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
cominterop.dll gs Microsoft Dot NET Framework 2 22nd May 2006 09:51 PM
ComInterop =?Utf-8?B?bWU=?= Microsoft Dot NET 2 8th Jul 2005 11:46 PM
ComInterop =?Utf-8?B?UmVkIERldmls?= Microsoft Dot NET 0 8th Jun 2005 07:23 AM
COMInterop problem ! Mário Sobral Microsoft C# .NET 0 23rd Feb 2004 04:49 PM
Problem in COMInterop Paul Arun Microsoft C# .NET 2 18th Nov 2003 09:23 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:41 PM.