473,434 Members | 1,430 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,434 software developers and data experts.

Versioning, GAC, ASP.NET and a BUNCH of sites - Please Help!

I have a common Class Library that I use on a QA server which has 10+ sites
that all use this library... I got everything working with the current
version installed in the GAC and since some aspx pages reference this via
the @REGISTER page directive I added the assembly in the machine.config so I
didn't have to deal with it in all of the individual web.config files: <add
assembly="Core.ClassLibrary, Version=1.4.4.5, etc..." />

Now - when I go to release the next minor update (which I do if there are
some minor bug fixes) and I change the release to 1.4.4.6 - I basically have
to recompile ALL of the sites, re-release ALL of the sites DLLs, AND
unregister/register the ClassLibrary AND change the machine.config to the
new version. UGH!!!!

FYI - I use the versioning for a visual reference so people know that they
are working on the latest "build.revsion" when testing stuff - so it is
crucial I be able to change at least the revision number without having to
go through this nightmare update process... There MUST be a better way!?

I use the same SNK file, the Public Key Token is the same, there must be
some way to create the reference and basically ignore the version # (or at
least the revision # of the version) - but I have to add the assembly in the
machine.config since there are pages that reference it - I am going nuts
here!

If you have any ideas, please let me know, thanks!

Nayt Grochowski
na**@internayt.com

Nov 18 '05 #1
2 2981
You can configure the Machine.Config file to force all .NET
applications using a particular version of an assembly to use a
different version.

For example,

<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="SomeAssembly"
publicKeyToken="XXXX..."/>
<bindingRedirect oldVersion="1.4.4.5"
newVersion="1.4.4.6"/>
</dependAssembly>
</assemblyBinding>
</runtime>

You might also want to look into using "Publisher Policy". Publisher
Policy allows you to accomplish the same thing. However, be aware that
any settings in the Machine.config will override the settings in the
"Publisher Policy".

Tommy,

"Nayt Grochowski" <na**@internayt.com> wrote in message news:<Ok**************@TK2MSFTNGP12.phx.gbl>...
I have a common Class Library that I use on a QA server which has 10+ sites
that all use this library... I got everything working with the current
version installed in the GAC and since some aspx pages reference this via
the @REGISTER page directive I added the assembly in the machine.config so I
didn't have to deal with it in all of the individual web.config files: <add
assembly="Core.ClassLibrary, Version=1.4.4.5, etc..." />

Now - when I go to release the next minor update (which I do if there are
some minor bug fixes) and I change the release to 1.4.4.6 - I basically have
to recompile ALL of the sites, re-release ALL of the sites DLLs, AND
unregister/register the ClassLibrary AND change the machine.config to the
new version. UGH!!!!

FYI - I use the versioning for a visual reference so people know that they
are working on the latest "build.revsion" when testing stuff - so it is
crucial I be able to change at least the revision number without having to
go through this nightmare update process... There MUST be a better way!?

I use the same SNK file, the Public Key Token is the same, there must be
some way to create the reference and basically ignore the version # (or at
least the revision # of the version) - but I have to add the assembly in the
machine.config since there are pages that reference it - I am going nuts
here!

If you have any ideas, please let me know, thanks!

Nayt Grochowski
na**@internayt.com

Nov 18 '05 #2
Excellent, that is just what I needed - thank you!
"Tommy" <We**********@Hotmail.com> wrote in message
news:a8**************************@posting.google.c om...
You can configure the Machine.Config file to force all .NET
applications using a particular version of an assembly to use a
different version.

For example,

<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="SomeAssembly"
publicKeyToken="XXXX..."/>
<bindingRedirect oldVersion="1.4.4.5"
newVersion="1.4.4.6"/>
</dependAssembly>
</assemblyBinding>
</runtime>

You might also want to look into using "Publisher Policy". Publisher
Policy allows you to accomplish the same thing. However, be aware that
any settings in the Machine.config will override the settings in the
"Publisher Policy".

Tommy,

"Nayt Grochowski" <na**@internayt.com> wrote in message

news:<Ok**************@TK2MSFTNGP12.phx.gbl>...
I have a common Class Library that I use on a QA server which has 10+ sites that all use this library... I got everything working with the current
version installed in the GAC and since some aspx pages reference this via the @REGISTER page directive I added the assembly in the machine.config so I didn't have to deal with it in all of the individual web.config files: <add assembly="Core.ClassLibrary, Version=1.4.4.5, etc..." />

Now - when I go to release the next minor update (which I do if there are some minor bug fixes) and I change the release to 1.4.4.6 - I basically have to recompile ALL of the sites, re-release ALL of the sites DLLs, AND
unregister/register the ClassLibrary AND change the machine.config to the new version. UGH!!!!

FYI - I use the versioning for a visual reference so people know that they are working on the latest "build.revsion" when testing stuff - so it is
crucial I be able to change at least the revision number without having to go through this nightmare update process... There MUST be a better way!?

I use the same SNK file, the Public Key Token is the same, there must be
some way to create the reference and basically ignore the version # (or at least the revision # of the version) - but I have to add the assembly in the machine.config since there are pages that reference it - I am going nuts
here!

If you have any ideas, please let me know, thanks!

Nayt Grochowski
na**@internayt.com

Nov 18 '05 #3

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

Similar topics

0
by: Jim Kerr | last post by:
Does makepy always respect versioning of interfaces? It appears as though makepy correctly handles versioning of objects you obtain directly, but not for objects you get via a function call. ...
3
by: Arun Bhalla | last post by:
I'm borrowing some code from Pavel's Command Prompt Explorer Bar installer to use in my own explorer bar's installer. Recently I've been thinking that using an assembly version like "1.0.*"...
1
by: Tapiwa JONGWE | last post by:
Hi, I have an ASP (not ASP .NET) application that I have to modify. I am using Visual studio .net as the editor. I would like to be able to work on the files together with a colleague and have...
0
by: SH | last post by:
We have a web site on our server and the site has got COM+ components written by us. Problem: We are trying to launch multiple websites for the same code with different URLs, but the problem is we...
2
by: PatrickSA | last post by:
Hi, Am new to web services, so apologies for the basic nature of the question - and apologies in advance if this is the wrong newsgroup. We're building a new web service and I'm looking around...
2
by: MeDhanush | last post by:
Hi, I was reading a doc on versioning, and came to know that versioning of assemblies are easier than ever. Can sb pl mention me, how this can be achieved using config files and how runtime...
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: =?Utf-8?B?ZG9vdG5kbzI=?= | last post by:
I was under the impression that I could have multiple versions of the same method (same signature) to support backward compatible clients. Is there a versioning attribute that can be used? For...
0
by: Dilip | last post by:
I have a weird problem with versioning one of my C# binaries. I have the usual AssemblyVersion/AssemblyFileVersion attributes set. When I use reflector to poke into the compiled binary I can find...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.