473,382 Members | 1,545 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

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 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.


Feb 2 '07 #1
0 975

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Terence Shek | last post by:
Is there a way to set the application binding policy so that it always binds to the latest version of an assembly? I'm hoping there is a way to avoid updating the application's binding...
1
by: Avi | last post by:
I have a c# .NET application. V15 & V16 I have a DBAccess DLL assembly. V15 & V16 I want the .Net Application V15 will work with V15 DBAccess.dll I want the .Net Application V16 will work...
2
by: Ily | last post by:
Hi I have several versions of an assembly in the GAC My problem is that I want my clients (windows + web clients) to use a specific version of an assembly I can get this to work by using...
7
by: R Reyes | last post by:
Can someone please explain to me why I can't get the MS Word Interop assembly to work in my VS2005 project? I'm trying to manipulate MS Word from my Web Form application and I can't get passed...
0
by: R Reyes | last post by:
ISSUE (reposted) =========================== Can someone please explain to me why I can't get the MS Word Interop assembly to work in my VS2005 project? For many people, they say they add the...
1
by: John H Clark | last post by:
I need some direction on how to configure IIS to use assemblies from the GAC instead of bin. I install assemblies in the GAC but IIS 6.0 doesn't find them. What's the secret? Many thanks... --...
10
by: =?Utf-8?B?SmFjayBTbWl0aA==?= | last post by:
Hello, I have a solution that contains a C# application that is installed and runs as a service. The solution also contains several DLLs, some of which are C# assemblies and some are C++ DLLs. ...
0
by: Andy | last post by:
Thanks Peter, I thought I'd give an update on this problem. My application had 2 assemblies that contained classed for the Data access and business logic layer. It was on one of them that I was...
1
by: Steve Wofford | last post by:
I am recieving the following. This happens when I moved it from my development system to our production SBS 2003 w/ latest .net frameworks and service packs . I developed under XPSP2 and VS2008. ...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.