PC Review


Reply
Thread Tools Rate Thread

Assembly binding redirections problem in .NET 2.0 Web Service

 
 
=?Utf-8?B?UnVzc2VsbCBQb29sZXk=?=
Guest
Posts: n/a
 
      2nd Feb 2007
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
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Assembly binding redirect towards a merged assembly Van den Driessche Willy Microsoft Dot NET 0 26th Nov 2007 03:04 PM
binding an assembly by using config-file and codebase - problem hvsegoo@googlemail.com Microsoft C# .NET 0 5th Oct 2007 01:42 PM
Assembly binding problem =?Utf-8?B?U3RldmVuIEJlcmtvdml0eg==?= Microsoft ASP .NET 12 9th Mar 2006 02:48 AM
Problem in COM Late-binding when exposing assembly to COM =?Utf-8?B?RmFoYWQgQXNoZmFxdWU=?= Microsoft Dot NET Framework 1 3rd Jun 2005 04:28 PM
Tri-problem: Assembly creation, early binding, the whole shebang. 455 Microsoft C# .NET 0 30th Jul 2003 02:05 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:11 PM.