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

.NET components version control and consistency

Hi!

How can I achieve the situation like that:
there is some application (.NET) and it is using some class library
(strongly named, installed by .msi, registered within GAC). I'd like to have
a crash on my client application when the class library version differs from
the one compiled with my application earlier e.g. my_app_version1 and
my_class_lib_version1 works fine but my_app_version1 and
my_class_lib_version2 cause crash.

I have one approach but it doesn't fit my scheme: to pool all the assembly
strings out of code to .config file and supply them with version numbers
(then my class factories will not be able to instantiate some objects
because there will be a different version)

Thanks in advance for any advises/suggestions!

Jul 21 '05 #1
4 1470
If I read your mail correctly, you are describing the default behaviour of
the runtime, so you dont have to do anything.
I'd like to have a crash on my client application
Your application won't crash, it just will not start.

Nick Holmes.
"Ostap Radkovskiy" <or*****@softservecom.com> wrote in message
news:e6**************@tk2msftngp13.phx.gbl... Hi!

How can I achieve the situation like that:
there is some application (.NET) and it is using some class library
(strongly named, installed by .msi, registered within GAC). I'd like to have a crash on my client application when the class library version differs from the one compiled with my application earlier e.g. my_app_version1 and
my_class_lib_version1 works fine but my_app_version1 and
my_class_lib_version2 cause crash.

I have one approach but it doesn't fit my scheme: to pool all the assembly
strings out of code to .config file and supply them with version numbers
(then my class factories will not be able to instantiate some objects
because there will be a different version)

Thanks in advance for any advises/suggestions!

Jul 21 '05 #2
Absolutely correct, thank you Nick.

Now I've got the other point - to restrict application working with only
certain lib version - e.g. I have some library installed, I'm building my
project with that library although my project should work with it's older
version. The project compiles successfully (no interface differences), but
acutally there is an error prone situation because my project is expecting
to execute the older functionality of the library. Here I'd like to get an
error saying "wrong library/component version"

Any ideas?

Thank you.

"Nick Holmes" <ni***@nospam.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
If I read your mail correctly, you are describing the default behaviour of
the runtime, so you dont have to do anything.
I'd like to have a crash on my client application


Your application won't crash, it just will not start.

Nick Holmes.
"Ostap Radkovskiy" <or*****@softservecom.com> wrote in message
news:e6**************@tk2msftngp13.phx.gbl...
Hi!

How can I achieve the situation like that:
there is some application (.NET) and it is using some class library
(strongly named, installed by .msi, registered within GAC). I'd like to

have
a crash on my client application when the class library version differs

from
the one compiled with my application earlier e.g. my_app_version1 and
my_class_lib_version1 works fine but my_app_version1 and
my_class_lib_version2 cause crash.

I have one approach but it doesn't fit my scheme: to pool all the assembly strings out of code to .config file and supply them with version numbers
(then my class factories will not be able to instantiate some objects
because there will be a different version)

Thanks in advance for any advises/suggestions!


Jul 21 '05 #3
I think you're looking for 'strong naming'. Check out the article at
http://www.ondotnet.com/pub/a/dotnet...ongnaming.html

Yves

"Ostap Radkovskiy" <or*****@softservecom.com> schreef in bericht
news:%2****************@TK2MSFTNGP11.phx.gbl...
Absolutely correct, thank you Nick.

Now I've got the other point - to restrict application working with only
certain lib version - e.g. I have some library installed, I'm building my
project with that library although my project should work with it's older
version. The project compiles successfully (no interface differences), but
acutally there is an error prone situation because my project is expecting
to execute the older functionality of the library. Here I'd like to get an
error saying "wrong library/component version"

Any ideas?

Thank you.

"Nick Holmes" <ni***@nospam.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
If I read your mail correctly, you are describing the default behaviour of
the runtime, so you dont have to do anything.
I'd like to have a crash on my client application


Your application won't crash, it just will not start.

Nick Holmes.
"Ostap Radkovskiy" <or*****@softservecom.com> wrote in message
news:e6**************@tk2msftngp13.phx.gbl...
Hi!

How can I achieve the situation like that:
there is some application (.NET) and it is using some class library
(strongly named, installed by .msi, registered within GAC). I'd like to
have
a crash on my client application when the class library version
differs from
the one compiled with my application earlier e.g. my_app_version1 and
my_class_lib_version1 works fine but my_app_version1 and
my_class_lib_version2 cause crash.

I have one approach but it doesn't fit my scheme: to pool all the

assembly strings out of code to .config file and supply them with version

numbers (then my class factories will not be able to instantiate some objects
because there will be a different version)

Thanks in advance for any advises/suggestions!



Jul 21 '05 #4
Thanks phoenix,

strong naming is good (versioning stands on it). Although by itself, strong
naming seems not to be able in solve my problem.

"phoenix" <pa******@skynetWORK.be> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
I think you're looking for 'strong naming'. Check out the article at
http://www.ondotnet.com/pub/a/dotnet...ongnaming.html

Yves

"Ostap Radkovskiy" <or*****@softservecom.com> schreef in bericht
news:%2****************@TK2MSFTNGP11.phx.gbl...
Absolutely correct, thank you Nick.

Now I've got the other point - to restrict application working with only
certain lib version - e.g. I have some library installed, I'm building my project with that library although my project should work with it's older version. The project compiles successfully (no interface differences), but acutally there is an error prone situation because my project is expecting to execute the older functionality of the library. Here I'd like to get an error saying "wrong library/component version"

Any ideas?

Thank you.

"Nick Holmes" <ni***@nospam.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
If I read your mail correctly, you are describing the default behaviour
of the runtime, so you dont have to do anything.

>I'd like to have a crash on my client application

Your application won't crash, it just will not start.

Nick Holmes.
"Ostap Radkovskiy" <or*****@softservecom.com> wrote in message
news:e6**************@tk2msftngp13.phx.gbl...
> Hi!
>
> How can I achieve the situation like that:
> there is some application (.NET) and it is using some class library
> (strongly named, installed by .msi, registered within GAC). I'd like to have
> a crash on my client application when the class library version differs from
> the one compiled with my application earlier e.g. my_app_version1
and > my_class_lib_version1 works fine but my_app_version1 and
> my_class_lib_version2 cause crash.
>
> I have one approach but it doesn't fit my scheme: to pool all the

assembly
> strings out of code to .config file and supply them with version

numbers > (then my class factories will not be able to instantiate some objects > because there will be a different version)
>
> Thanks in advance for any advises/suggestions!
>
>
>



Jul 21 '05 #5

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

Similar topics

0
by: Christophe | last post by:
hi, I work alone but still use VSS for de version feature.(Version 6.0d build 9848) When I load a project from the start page that is a VSS project, I can't open de option window in de tool menu...
1
by: Ostap Radkovskiy | last post by:
Hi! How can I achieve the situation like that: there is some application (.NET) and it is using some class library (strongly named, installed by .msi, registered within GAC). I'd like to have a...
0
by: petro | last post by:
I am trying to deploy an asp.net application to my web server. My application uses system.data.oledb to connect to an oracle database. On my development machine I have the oracle client 10g...
5
by: Patrick Vanden Driessche | last post by:
Hi All, I'm currently writing an in-house Form validation framework (WinForms) which is based on 'Component'-inheriting object. So basically, I have a small hierarchy. FormValidator +--...
1
by: Ellis Yu | last post by:
Dear all, I write my own components for my project and add them in "My User Control" under the toolbar. Some time later, I make some other new components into it and want to use them in my...
4
by: Ostap Radkovskiy | last post by:
Hi! How can I achieve the situation like that: there is some application (.NET) and it is using some class library (strongly named, installed by .msi, registered within GAC). I'd like to have a...
7
by: crowl | last post by:
VS.2003, .NET Framework 1.1, C# My goal: Creating a dll (helper.dll) which contains some UserControls and some other helpful classes in order to use it in other projects. Symtoms: The...
7
by: John | last post by:
I'm trying to use the OWC on my web form and trying to make it look like Excel. I have the box there but no formatting such as headers, bold font, etc. I have the same control on a asp page and I...
2
by: =?Utf-8?B?Tm9tYW4gQWxp?= | last post by:
Hi, We are facing a strange problem in our ASP. NET website. Some times it gives the following unhandled exception. Error Message: Exception of type System.Web.HttpUnhandledException was...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.