473,395 Members | 1,629 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,395 software developers and data experts.

Can't remove old version of external assembly

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
Jul 19 '05 #1
1 3067
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 aversion # of 1.0.0.2. This assembly, DBParameter, was usedby 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 andthe 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
.

Jul 19 '05 #2

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

Similar topics

2
by: Terence Shek | last post by:
Is there a way to set the application binding policy so that it always binds to the latest version of an assembly? I'm hoping there is a way to avoid updating the application's binding...
2
by: tvaidie | last post by:
Hi all I have two one signing assembly registered in GAC in two different version. I want to remove them but I don't seem able to do so. First I used gacutil.exe, failed with this error...
4
by: Bob | last post by:
Could anyone suggest me some examples/articles on creating a setup program in VS.NET that can install the assembly into the GAC? I have done some search and research myself and have some basic...
3
by: Paul Klanderud | last post by:
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...
3
by: Siv | last post by:
Hi, A little while ago I wrote a small program that allowed the user to view products from a database. The database holds the details of the products which can be viewed via a form and...
11
by: cybervigilante | last post by:
I can't seem to change the include path on my local winmachine no matter what I do. It comes up as includ_path .;C:\php5\pear in phpinfo() but there is no such file. I installed the WAMP package...
14
by: Monty | last post by:
Hello, I have created a solution which has both a web UI and a winform UI, the latter is just for administrators. The Web UI (a Web Application Project) and the winform project both...
6
by: Andrus | last post by:
VCSE 2005 .NET 2 WinForms I created assembly at runtime and added mydll.dll reference to it. mydll.dll is in applicatino startup directory. When I change mydl.dll to never version, this assembly...
2
by: =?Utf-8?B?Unlhbg==?= | last post by:
I am using vb.net to launch an external application (.exe); how do I capture this external applications's version number in my vb.net app?
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...

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.