PC Review


Reply
Thread Tools Rate Thread

Assembly versioning problem

 
 
Michael Moreno
Guest
Posts: n/a
 
      22nd Sep 2005
Hello,

I have been faced with an assembly versionning problem that I could not
solve in two days and would appreciate any help.

Here is what I have:

C# Exe "Exe" that uses Win32 COM DLL "SD_MarketData" and C# Assembly
"Asm"
C# COM DLL "CComdll" that uses "SD_MarketData" and "Asm".


"CComdll" must have a strong name to be registered which implies that
"Interop.SD_MarketData" and "Asm" must have a strong name.
But "Exe" does not have a strong name and when it references
"SD_MarketData" it does not create the "Interop.SD_MarketData" with a
strong name.

When I start "Exe" it fails saying:

The located assembly's manifest definition with name
'Interop.SD_MarketData' does not match the assembly reference.

The reasons is simple : 2 identical Interop.SD_MarketData are created
but with different versions and if the Exe starts then the COM will
fail to start and vice-versa.

Would you know how this versionning issue can be solved please?

Thanks.

--
Michael
----
http://michael.moreno.free.fr/
http://port.cogolin.free.fr/

 
Reply With Quote
 
 
 
 
Mattias Sjögren
Guest
Posts: n/a
 
      22nd Sep 2005
>Would you know how this versionning issue can be solved please?

If I understand the situation correctly: Reference your existing
strong-named Interop.SD_MarketData assembly from the EXE instead of
referencing SD_MarsketData and creating a new one.


Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
 
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
Assembly versioning =?Utf-8?B?TWFyaw==?= Microsoft Dot NET 2 24th Jan 2007 10:56 AM
Assembly versioning mike Microsoft Dot NET Framework 1 20th Oct 2005 04:28 PM
Assembly versioning Ily Microsoft ASP .NET 2 4th Apr 2005 06:13 PM
Assembly versioning Klaus Aschenbrenner Microsoft Dot NET Framework 0 17th Mar 2005 01:31 PM
Dot net assembly versioning Coder Microsoft C# .NET 3 14th Nov 2003 11:27 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:15 PM.