473,396 Members | 2,013 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,396 software developers and data experts.

Assembly version redirection in web.onfig

Hi,

We have developed an ASP.NET 1.1 application which references strong named
assemblies. The assemblies reside in the "bin" folder of the app, not the GAC.

We want a way in which whenever we change the version of a strong named
assembly, the ASP.NET won´t have to be recompiled. In order to accomplish
this we are using <bindingredirect> tags in the web.config file. But the
problem is that it seems that these tags aren´t read from web.config, and the
asp.net app continues trying to load the old version. When the application
crashes, the error page show us that during the probing process it only
processes the aspnet.config file, and the machine.config file. Since those
files aren´t inside the application directory, we don´t lilke this solution.

Is there any way to redirect the version of an assembly in a ASP.NET
application with a .config file inside the application directory?

Thanks in advance for your help.

Jose Antonio
Feb 3 '06 #1
2 2356
Try Publisher Policy File.

http://msdn.microsoft.com/library/de...ationfiles.asp
--
Harish Shikhare

"Jose Antonio" wrote:
Hi,

We have developed an ASP.NET 1.1 application which references strong named
assemblies. The assemblies reside in the "bin" folder of the app, not the GAC.

We want a way in which whenever we change the version of a strong named
assembly, the ASP.NET won´t have to be recompiled. In order to accomplish
this we are using <bindingredirect> tags in the web.config file. But the
problem is that it seems that these tags aren´t read from web.config, and the
asp.net app continues trying to load the old version. When the application
crashes, the error page show us that during the probing process it only
processes the aspnet.config file, and the machine.config file. Since those
files aren´t inside the application directory, we don´t lilke this solution.

Is there any way to redirect the version of an assembly in a ASP.NET
application with a .config file inside the application directory?

Thanks in advance for your help.

Jose Antonio

Feb 4 '06 #2
Hi Harish,

Thank you very much for your suggestion. We already knew the possibility of
using a publisher policy file, but in our deployment scenarios we can´t
install assemblies in the GAC or use the machine.config file. That is the
reason why we need to use the application file to indicate the correct
version of the assemblies to use. With ASP.NET applications the application
configuration file to use would be the web.config file, but it seems that
this file is not used during the probing process.

We would like to know if someone could confirm us that the web.config file
couldn´t be used to redirect assemblies and if it is possible, what steps
have to be done to achieve it.

Thanks in advance.

Jose Antonio
Feb 6 '06 #3

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...
7
by: Ruslan Popov | last post by:
Hi, I am trying to prevent an assembly being loaded from GAC and instead want it loaded from the application's base directory. However, the assembly always gets loaded from GAC. How to have it...
2
by: Bob | last post by:
I have a common assembly DLL that's installed into GAC (using msi created by a setup project). It contains classes used by all the applications we have. This works well but when I increase the...
3
by: edge | last post by:
Is there any way to Assembly.Load() dynamically the DLLs of my project, with their strong names, but without the need to specify a version? I just want the public/private key to exist as a measure...
10
by: jojobar | last post by:
Hello, I am trying to use vs.net 2005 to migrate a project originally in vs.net 2003. I started with creation of a "web site", and then created folders for each component of the site. I read...
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...
3
by: Richard Lewis Haggard | last post by:
We are having a lot of trouble with problems relating to failures relating to 'The located assembly's manifest definition with name 'xxx' does not match the assembly reference" but none of us here...
1
by: Coaster | last post by:
orig ref here http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/browse_thread/thread/ff29cc370678911d/c0db5b7e3da283b9?lnk=st&q=gac+assembly+new+version&rnum=7#c0db5b7e3da283b9...
6
by: Ben | last post by:
Hi all, First i have to state this is my first entry ever in a forum. So please be forgiving... I am a newbe to dotnet versioning... The Situation is the following: Our application is using...
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.