assemblyBinding not working in web.config?

Check Your config’s configuration tag! Has it any namespaces? e.g.:

<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
   <runtime>
      <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
         <dependentAssembly>
            <assemblyIdentity name="SomeAssembly" publicKeyToken="..." />
            <bindingRedirect oldVersion="1.0.0.0" newVersion="2.0.0.0" />
         </dependentAssembly>
         ...

Remove namespace!

<configuration>
...

Voilá, it starts working!

Credits to this poster.

This entry was tagged .

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.