2 versions of assembly in GAC

G

grhum

Hi everybody,

I installed 2 versions of an assembly in the GAC.
The first: version 1.0.0.0 and the second: version 2.0.0.0

When I launch my web application, this one use the first version of my
assembly (in the GAC).
How can I use the last version of the assembly in the GAC ?
Without to specify the number of version.

Thanks in advance
Grhum
 
P

Paul Clement

On 9 Mar 2005 09:13:26 -0800, (e-mail address removed) (grhum) wrote:

¤ Hi everybody,
¤
¤ I installed 2 versions of an assembly in the GAC.
¤ The first: version 1.0.0.0 and the second: version 2.0.0.0
¤
¤ When I launch my web application, this one use the first version of my
¤ assembly (in the GAC).
¤ How can I use the last version of the assembly in the GAC ?
¤ Without to specify the number of version.
¤
¤ Thanks in advance
¤ Grhum

See if the following helps:

Support for Multiple Versions of the Same Component with Visual Studio .NET 2003
http://msdn.microsoft.com/library/d...dv_vstechart/html/vstch_multivercomponent.asp


Paul ~~~ (e-mail address removed)
Microsoft MVP (Visual Basic)
 
G

grhum

Paul Clement said:
On 9 Mar 2005 09:13:26 -0800, (e-mail address removed) (grhum) wrote:

¤ Hi everybody,
¤
¤ I installed 2 versions of an assembly in the GAC.
¤ The first: version 1.0.0.0 and the second: version 2.0.0.0
¤
¤ When I launch my web application, this one use the first version of my
¤ assembly (in the GAC).
¤ How can I use the last version of the assembly in the GAC ?
¤ Without to specify the number of version.
¤
¤ Thanks in advance
¤ Grhum

See if the following helps:

Support for Multiple Versions of the Same Component with Visual Studio .NET 2003
http://msdn.microsoft.com/library/d...dv_vstechart/html/vstch_multivercomponent.asp


Paul ~~~ (e-mail address removed)
Microsoft MVP (Visual Basic)

Thanks Paul,

But It's not really that I want.
In fact, I would like my web application uses automatically the
greatest version (of the assembly) in the GAC, without recompile the
web application (with visual studio).

I compiled my web application using my assembly (version 1.0.0).
I put my assembly in the GAC (on my server).
I deployed my web application on my server.
It's ok.
But now I created a new version of my assembly, the version 2.0.0.
I put it in the gac of my server, but my web application continue to
use the version 1.0.0.
And I would like use the version 2.0.0 without do something.

Grhum
 
G

grhum

Mattias Sjögren said:
You can do that with binding redirects or publisher policy.

http://msdn.microsoft.com/library/en-us/cpguide/html/cpconassemblyversionredirection.asp



Mattias

Thanks Mattias,

But as I want perform a redirection of assembly for all my web
application, I tried to use the .NET Configuration 1.1 tool.
I add an assembly to configure, and I add a Binding Policiy:
Requested Version: 1.0.0.0
New Version: 2.0.0.0

And sometimes, that works, and sometimes that doesn't work
And when I want remove the Bindign Policy, to use again the first
version into the GAC, that works any more.
I receive each time this error message:
Method not found: System.String
GAC_Testing.Class1.get_AssemblyVersion().

What's wrong in my logic ?

Thanks in advance
 
M

Mattias Sjögren

And sometimes, that works, and sometimes that doesn't work
And when I want remove the Bindign Policy, to use again the first
version into the GAC, that works any more.
I receive each time this error message:
Method not found: System.String
GAC_Testing.Class1.get_AssemblyVersion().

What's wrong in my logic ?


I can't tell without more details. But I recommend you use the
Fuslogvw.exe tool for diagnosing binding and loading problems.



Mattias
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top