HighTechTalks DotNet Forums  

Assembly binding redirections problem in .NET 2.0 Web Service

ASP.net Web Services microsoft.public.dotnet.framework.aspnet.webservices


Discuss Assembly binding redirections problem in .NET 2.0 Web Service in the ASP.net Web Services forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Russell Pooley
 
Posts: n/a

Default Assembly binding redirections problem in .NET 2.0 Web Service - 02-21-2007 , 09:47 AM






I have a .NET 2.0 Web Service that is using a strongly named .NET 1.1 dll
with a version of 1.0.1.0. If we change the version of the 1.1 dll that the
web service is using to 1.0.2.0 we get an expected type load exception when
the webservice loads saying it wants the 1.0.1.0 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 1.0.1.0 to use 1.0.2.0 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:

<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Engine" culture=""
publicKeyToken="57ec80d56c1fa759">
<bindingRedirect oldVersion="1.0.1.0" newVersion="1.0.2.0" />
</assemblyIdentity>
</dependentAssembly>
</assemblyBinding>
</runtime>

<appSettings/>
<connectionStrings/>.........

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.


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.