CLR ignores <bindingRedirect> in Web.config.


R

Rokas Valantinas

Hi,

After deploying ASP.NET webservices to clients testing environment, some
problems occured with assembly versioning. Exception log showed that CLR
ignores <bindingRedirect> tag and it's contents in Web.config file, which
worked fine on our development environment:

<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="MyAssemblyName" publicKeyToken="67bed195da6662dc"
/>
<bindingRedirect oldVersion="0.0.0.0-9.9.9.9" newVersion="2.1.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>

Assembly version 2.0.0.0 was loaded instead of 2.1.0.0 (Both versions are
installed to GAC).
Moving this code to Aspnet.config file, eliminates the problem, but this is
not the solution.
Win 2k and Framework v1.0.3705 installed on both computers, security
settings are also the same.
I have no idea how I can solve this problem. If any one can give me some
suggestions I would greatly appreciate it.

Thanks,
Rokas
 
Ad

Advertisements


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