Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / CLR / February 2008

Tip: Looking for answers? Try searching our database.

Internal working CLR when referencing a 1.1 lib from a 2.0 (or     higher) asp.net application?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Martijn B - 31 Jan 2008 11:34 GMT
Hi there,

I have a question about the internal working of the CLR when it comes
to a 2.0 (or higher) asp.net app referencing a library written in 1.1.

How does the CLR handles this? Does is start CLR 2.X.X and CLR 1.1.X.X
(if so what kind of performance problemes gives this, is there any
info written about this subject) or does CLR 2.X.X also handle the 1.1
library? I don't have any clue so it would be nice if anyone could
enlightening me.

Thanks in advance!

Martijn B
Marc Gravell - 31 Jan 2008 12:10 GMT
You only get one CLR per process. The 1.1 code runs in the 2.0 CLR,
which supports all of the IL instructions from 1.1 so there are no
fundamental "it can't work" issues. However, it does mean that the 1.1
code will run with the 2.0 versions of the libraries - i.e. if there
are some obscure changes in ArrayList (or some other type being used
by the 1.1 assembly), then there may be subtle behavior differences.

Marc
Phill W. - 31 Jan 2008 13:04 GMT
> I have a question about the internal working of the CLR when it comes
> to a 2.0 (or higher) asp.net app referencing a library written in 1.1.
[quoted text clipped - 3 lines]
> info written about this subject) or does CLR 2.X.X also handle the 1.1
> library?

The 2.0 Runtime can load and run code from 1.1 assemblies and, for the
most part, they /will/ "just work".  Those 1.1 classes, of course,m will
in turn call Framework methods that will now be taken from the 2.0
runtime, but there are /very/ few cases where this should cause you any
grief.

The big "Gotcha!", for anyone with a code base big enough that you can't
recompile everything overnight, is that a 1.1 Process *cannot* load
assemblies built against Fx 2.0 or later.

HTH,
   Phill  W.
Martijn B - 01 Feb 2008 09:05 GMT
On 31 jan, 14:04, "Phill W." <p-.-a-.-w-a-r...@-o-p-e-n-.-a-c-.-u-k>
wrote:
> > I have a question about the internal working of the CLR when it comes
> > to a 2.0 (or higher) asp.net app referencing a library written in 1.1.
[quoted text clipped - 16 lines]
> HTH,
>     Phill  W.

Thanks All

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.