473,406 Members | 2,356 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,406 software developers and data experts.

GAC versioning issues

Hi there,

I have a problem with an assembly deployed in GAC. First of all, a
little scenario description:

We develop (small) WEB apps that use an assembly for connecting with
our databases. This assembly has evolved from 1.1 to 1.3 version.

The problem:
I've installed the two assemblies in GAC, apparently without problems,
because version label is different but PublicKeyToken is the SAME for
both.

The point is that the Runtime seems to see no difference between them
because in an application which uses both (in differente projects)
there is an error when trying to invoke a method present in the older
but not in the new one. The exception is System.MissingMethodException
because is trying to look for the method in the new assembly (1.3)
when this invocation is made in the project which references (in
VS.NET) the previous version (1.1) which HAS the method.

As I say references seem to be okay, in fact when coding VS.NET's
Intellisense see the difference between both assemblies but for GAC is
the same!!! Even when the version number is different!!!

What am I doing wrong? Maybe having the same PublicKeyToken?

Thanks a lot in advance for any help!!!

Juan de Ituarte
Nov 19 '05 #1
1 974
> The point is that the Runtime seems to see no difference between them
because in an application which uses both (in differente projects)
there is an error when trying to invoke a method present in the older
but not in the new one. The exception is System.MissingMethodException
because is trying to look for the method in the new assembly (1.3)
when this invocation is made in the project which references (in
VS.NET) the previous version (1.1) which HAS the method.


So if your client application was using 1.1 and you're getting 1.3 this mean
a version redirect is happening. Some configuration file somewhere is configured
to always load the new version. Ahat version are you referencing in web.config
or in your <%@Assembly %> reference? Here's how you'd specify which version
to use:

http://msdn.microsoft.com/library/de...asp?frame=true

Is this component a thrid party component? It's possible they shipped a publisher
policy with the assembly which causes the redirect, so you'd want to disable
their policy file. Here's how you'd disable a publisher policy:

http://msdn.microsoft.com/library/de...sherpolicy.asp

-Brock
DevelopMentor
http://staff.develop.com/ballen

Nov 19 '05 #2

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

Similar topics

4
by: Sandman | last post by:
Hello - I suppose this group could be suitable for my questions... I am interested in a versioning system that works good for web authoring. I don't know what differences web development might...
3
by: Alex Stevens | last post by:
Hi All, I'm trying to get around a problem that I'm having with versioning. I have a DLL called Control.dll and it is at version 1.0. I choose to inherit from one of the controls, and build my...
2
by: PatrickSA | last post by:
Hi, Am new to web services, so apologies for the basic nature of the question - and apologies in advance if this is the wrong newsgroup. We're building a new web service and I'm looking around...
1
by: MrNobody | last post by:
Is there any way to have .NET IDE to handle versioning for your application? If for example you want a certain build number to increment every time you build your project? Would need this version...
3
by: Modica82 | last post by:
Hi all, Does anyone have any views/information on the best way to version web services. I am writing a proposal on how the company should handle versioning of its web services and would like...
3
by: DevilDog74 | last post by:
There is some debate on what an ideal web service interface would look like at my organization. The debate revolves around how to write our web service interface so that new methods do not break...
1
by: zacks | last post by:
Am using VB.NET 2005. I have a solution that has four projects. Two projects are standard windows applications. One is a class library that is shared by the two windows application projects, it...
1
by: betbubble | last post by:
I replicate (transactional replication) my data entry database to a read-only database. Both are SQL 2000+SP4. The web server reads the read-only database. At times, there will be lots of changes...
1
by: =?Utf-8?B?TGVuYSBDYXJyb2xs?= | last post by:
I have a web application that was originally in VS2003 which was recently converted to VS2005. It uses a 3rd party control OPControl (from omnipotent software), which has its own web-site that...
0
by: NagarajanS | last post by:
Hi, Any body tell me open source build versioning tool? i developed one tool and i am fixing bugs as per the incoming issues.Note that i don't have the wincvs.I am only persion fixing the bugs.Now...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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,...
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
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...

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.