Assembly version redirecting..

S

Sinex

Hi !
I've developed a strong named assembly (dll) thats being used by a client
application(exe). Now i have a new version of the dll. I dont want to
recompile the client. Hence I just added a <bindingRedirect> entry in the
config file of the application. Both versions of the assembly are in the
GAC...but the client app still picks up the old verison only.

Any recommendations?

...Sinex
 
S

Sinex

In particular, heres the log that i get:
=== Pre-bind state information ===
LOG: DisplayName = Engine, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=764034e4da632f6c
(Fully-specified)
LOG: Appbase = D:\Visual Studio 2003
Projects\WindowsApplications\StrongNameTest\Client\bin\Debug\
LOG: Initial PrivatePath = NULL
Calling assembly : Client, Version=1.0.2608.28205, Culture=neutral,
PublicKeyToken=null.
===

LOG: Safe mode is set (applyPublisherPolicy=no).
LOG: Host configuration file not found.
LOG: Using machine configuration file from
C:\WINNT\Microsoft.NET\Framework\v1.1.4322\config\machine.config.
LOG: Post-policy reference: Engine, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=764034e4da632f6c


The Post-policy reference is also trying to get Version1.0...whereas I do
have a bindingRedirect that tells the app to pick version2.0
 

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