Assembly binding redirections problem in .NET 2.0 Web Service



I have a .NET 2.0 Web Service that is using a strongly named .NET 1.1 dll
with a version of If we change the version of the 1.1 dll that the
web service is using to we get an expected type load exception when
the webservice loads saying it wants the version it was built with.

This is fine, the problem we are having is if we provide assembly
redirections in the Web Service to redirect the to use it
seems to ignore the bindings so it will still keep throwing the type load
exception even though it should be using the redirected assembly.

Here is the contents of the web.config:

<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<assemblyIdentity name="Engine" culture=""
<bindingRedirect oldVersion="" newVersion="" />


We have produced a sample project that reproduces this behaviour, let me
know if you need it.

Ideally we are hoping to get redirections working. We used Visual Studio
..NET 2005 for the WebService and Visual Studio .NET 2003 for the dependant
dll. All assemblies were signed.


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