PC Review


Reply
Thread Tools Rate Thread

Can't remove old version of external assembly

 
 
Paul Klanderud
Guest
Posts: n/a
 
      24th Jul 2003
I'm having a problem with being unable to remove a
reference to an old, nonexistent version of a strongly-
named assembly.

I should mention that my issues arose at the same time I
upgraded from v 1.0.3705 to v 1.1.4322 of the framework
(and to the 2003 IDE); I've been recompiling old 1.0
components.

I had created the assembly and installed in the GAC with a
version # of 1.0.0.2. This assembly, DBParameter, was used
by a serviced component. I uninstalled from the GAC and
created a new version, now up to 1.0.1.4.

The problem is, my components referencing this assembly
refuse to give up the old assembly reference to version
1.0.0.2 -- even though it's been long gone from my box and
the GAC.

What's happening is my manifests are showing a reference
to the new DBParameter, but also to the old one, with an
alias, like so:

..assembly extern DBParameter
{
.publickeytoken = (E9 B4 14 50 D7 FC 48
40 ) // ...P..H@
.ver 1:0:1:4
}
..assembly extern DBParameter as DBParameter_7
{
.publickeytoken = (F7 01 A2 50 74 2F 79
FE ) // ...Pt/y.
.ver 1:0:0:2
}


No matter what I do, I can't get rid of this old assembly
reference. I've used a brand new key file to compile the
new version, yet my apps using this assembly insist on
looking for the old one too (and of course the public key
token is long gone).

Any suggestions on how to break this dependency? I am in
assembly hell ....

TIA,
Paul Klanderud
 
Reply With Quote
 
 
 
 
Paul Klanderud
Guest
Posts: n/a
 
      25th Jul 2003
I found the solution to my own problem. One of the other
assemblies my app referenced had an old reference to the
old version -- I thought I had recompiled it, but hadn't.

Paul


>-----Original Message-----
>I'm having a problem with being unable to remove a
>reference to an old, nonexistent version of a strongly-
>named assembly.
>
>I should mention that my issues arose at the same time I
>upgraded from v 1.0.3705 to v 1.1.4322 of the framework
>(and to the 2003 IDE); I've been recompiling old 1.0
>components.
>
>I had created the assembly and installed in the GAC with

a
>version # of 1.0.0.2. This assembly, DBParameter, was

used
>by a serviced component. I uninstalled from the GAC and
>created a new version, now up to 1.0.1.4.
>
>The problem is, my components referencing this assembly
>refuse to give up the old assembly reference to version
>1.0.0.2 -- even though it's been long gone from my box

and
>the GAC.
>
>What's happening is my manifests are showing a reference
>to the new DBParameter, but also to the old one, with an
>alias, like so:
>
>..assembly extern DBParameter
>{
> .publickeytoken = (E9 B4 14 50 D7 FC 48
>40 ) // ...P..H@
> .ver 1:0:1:4
>}
>..assembly extern DBParameter as DBParameter_7
>{
> .publickeytoken = (F7 01 A2 50 74 2F 79
>FE ) // ...Pt/y.
> .ver 1:0:0:2
>}
>
>
>No matter what I do, I can't get rid of this old assembly
>reference. I've used a brand new key file to compile the
>new version, yet my apps using this assembly insist on
>looking for the old one too (and of course the public key
>token is long gone).
>
>Any suggestions on how to break this dependency? I am in
>assembly hell ....
>
>TIA,
>Paul Klanderud
>.
>

 
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
The application requires that assembly office Version 12.0.0.0 be installed in the Global Assembly Cache (GAC) first. Bill Nguyen Microsoft VB .NET 2 30th May 2008 11:17 PM
What is the difference between runtime version and the version propery in a .net assembly nenzax Microsoft Dot NET Framework 1 18th Feb 2007 08:24 PM
External Assembly version Jared Microsoft Dot NET Framework Forms 3 4th Nov 2006 10:45 AM
is there any way to get to a unique build verion of an assembly at runtime? e.g. a version that is unique to the time that the assembly was built? Daniel Microsoft Dot NET Framework 1 14th Dec 2004 04:10 PM
Assembly version from unloaded assembly bw Microsoft Dot NET Framework 5 14th Aug 2003 06:41 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:54 AM.