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

Discussion in 'Microsoft ASP .NET' started by C., Jul 22, 2010.

  1. C.

    C. Guest

    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!
     
    C., Jul 22, 2010
    #1
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.
Similar Threads
  1. Nick

    Can't reference Assemblies in GAC?

    Nick, Jul 16, 2003, in forum: Microsoft ASP .NET
    Replies:
    1
    Views:
    237
    Guru Prasad
    Jul 24, 2003
  2. denull
    Replies:
    2
    Views:
    284
    Saravana [MVP]
    Nov 18, 2003
  3. Rokas Valantinas

    CLR ignores <bindingRedirect> in Web.config.

    Rokas Valantinas, Nov 20, 2003, in forum: Microsoft ASP .NET
    Replies:
    0
    Views:
    884
    Rokas Valantinas
    Nov 20, 2003
  4. enrico sabbadin

    ASp.NET caches assemblies in the GAC

    enrico sabbadin, Jun 1, 2004, in forum: Microsoft ASP .NET
    Replies:
    2
    Views:
    339
    enrico sabbadin
    Jun 3, 2004
  5. Sam-I-Am

    web apps and the GAC (cannot update assemblies)

    Sam-I-Am, Aug 16, 2004, in forum: Microsoft ASP .NET
    Replies:
    6
    Views:
    462
    Rick Strahl [MVP]
    Sep 8, 2004
  6. Guest
    Replies:
    1
    Views:
    308
    Guest
    Oct 29, 2004
  7. xenophon

    2.0 and/not GAC Assemblies

    xenophon, Jan 19, 2006, in forum: Microsoft ASP .NET
    Replies:
    4
    Views:
    302
    Steven Cheng[MSFT]
    Jan 20, 2006
  8. Patrick Bates

    ASP.Net wants assemblies ADODB and STDOLE, but not in GAC?

    Patrick Bates, Jul 18, 2006, in forum: Microsoft ASP .NET
    Replies:
    0
    Views:
    524
    Patrick Bates
    Jul 18, 2006
Loading...