PC Review


Reply
Thread Tools Rate Thread

Can <bindingRedirect> apply to assemblies not in the GAC?

 
 
C.
Guest
Posts: n/a
 
      22nd Jul 2010
Hi,

I'm dealing with a legacy .Net 1.1 app with a /bin folder that
contains hundreds of assemblies. Most of those assemblies reference a
legacy AuthKeeper.dll assembly, version 1.2.0.0, which also resides in
that /bin folder (so no, it's not in the GAC).

I have an updated AuthKeeper.dll, version 2.0.0.0, where I've changed
the internals of many functions, but it is backwards compatible. What
I would like to do is to have all those legacy assemblies point to the
new AuthKeeper.dll without having to update all the references
manually.

I added AuthKeeper v. 2 to the GAC and then added this to the top of
my machine.config file for .Net 1.1:

<configSections>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="AuthKeeper"
publicKeyToken="6e158a01149e9e07" culture="neutral" />
<bindingRedirect oldVersion="1.0.0.0-1.9.9.9"
newVersion="2.0.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
**SNIP**

But after removing the legacy AuthKeeper.dll, it comes back with:

System.IO.FileNotFoundException: Could not load file or assembly
'AuthKeeper, Version=1.0.2804.14599, Culture=neutral,
PublicKeyToken=null' or one of its dependencies. The system cannot
find the file specified.

Can anyone think of how to do what I want to do?

Thanks!
 
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
bindingRedirect problem coltrane Microsoft C# .NET 1 15th Jan 2009 12:58 PM
bindingRedirect in App.config tcw Microsoft Dot NET Framework 1 14th Aug 2006 08:44 AM
bindingRedirect Stephen Ahn Microsoft Dot NET Framework 0 6th Apr 2005 07:50 AM
CLR ignores <bindingRedirect> in Web.config. Rokas Valantinas Microsoft ASP .NET 0 20th Nov 2003 02:15 PM
App.config file <bindingRedirect> problems Peter Blum Microsoft Dot NET 3 24th Jul 2003 11:28 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:02 PM.