Assembly Binding Redirect in machine.config RRS feed

  • Pergunta

  • Hi Everyone,

    I have a .NET1.1 DLL named ABC.dll with version which is referanced by many .NET 1.1 web applications and also it is installed in GAC after signing with key1.snk. Now i have created new version of same ABC.dll version and signing the dll with new key key2.snk.

    My problem is we can neither make changes to the source code of Web Applications nor can compile it. So i make changes in machine.config @C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\CONFIG


    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">


    <assemblyIdentity name="Grapevine" publicKeyToken="5a3536ced5e47f0c"

    culture="neutral" />


    <bindingRedirect oldVersion="" newVersion=""/>







    it works fine for me if i keep the same key1.snk for ABC.dll but how can i use redirection policy to redirect to new ABC.dll with key2.snk


    Please let me know correct form category if i am posting it to incorrect form category.

    A bit tricky thing need to be done.. need your support

    Thanks in advance

    quarta-feira, 11 de agosto de 2010 05:20