Do you need both .net 3.5 and 4.0 installed or just .net 4?
Asked Answered
N

5

31

to run both 3.5 and 4.0 web apps?

Nib answered 15/4, 2010 at 2:3 Comment(0)
C
17

I remember reading something once from Microsoft that stated:

".NET 4.0 adds in-process side-by-side compatibility with earlier versions of the Framework. This feature allows an application process to simultaneously run part of its code using the .NET Common Language Runtime (CLR) 4 and other parts using older versions of the CLR."

So to answer your question you only need both if your application uses features from both or altenatively you have separate web applications that use .NET 3.5 and .NET 4.0.

.NET 4.0 should be fine by itself, as long as you can upgrade your 3.5 applications to 4.0. This page has some useful infrmation.

Heres where I read it.

Cryoscopy answered 15/4, 2010 at 2:15 Comment(5)
asp.net doesn't use 3.5 and 4.0 side-by-side in the same process and 4.0 provides almost all of the 3.5 features (with a few compatibility exceptions like j#)Rawlings
@Pent, good point, I think I'm actually answering a different question.Cryoscopy
seems to imply you need to install 3.5 and 4.0Nib
I'll accept this as its pretty much the right answer with a bunch of other cruft :)Nib
From msdn.microsoft.com/en-us/library/bb822049.aspx: "Apps that were built for versions 2.0, 3.0, and 3.5 can all run on version 3.5, but they will not work on version 4 or later."Putrefy
N
4

http://msdn.microsoft.com/en-us/magazine/ee819091.aspx

It appears you need to install side by side.

Nib answered 15/4, 2010 at 3:42 Comment(0)
B
4

I found that I needed 3.5 even though I have 4 installed. Without 3.5 I was getting GfxUI has stopped working error. Despite installing the latest Intel Drivers for G41 chipset The error would persist. I then found a post which said it requires .net3.5 and as soon as I installed this I was OK. So... as previously said it all depends on the apps you have installed. If they need 3.5 then you need to install both.

Benedicto answered 31/3, 2012 at 14:36 Comment(0)
R
1

Only 4.0 should be enough, there could be some issues though - for example J# does not work on .net 4.0

Rawlings answered 15/4, 2010 at 2:14 Comment(2)
I wanted something a little bit definite than "should". Its kind of why I asked the question.... I was thinking "It should work..." but not really 100%Nib
There also seems to be new restrictions in .NET 4.0 with regard to reflection security. You may want to test in both .NET 4.0 and a .NET 3.5 system before relying on .NET 4.0 to run your .NET 3.5 app.Sullins
P
0

To add one more point...

All Frameworks prior to 4.0 [4.0 CLR] (yes, even 3.5.1) are based on the 2.0 CLR. Microsoft has made every attempt to make 4.5 [4.5 CLR] a "seamless" in place upgrade (or service [if not feature] pack).

Like another astute commented stated above, if you have dependencies for 3.5.1 that can't be transitioned, choices are a bit more limited. Does anyone know if the Entity and LINQ stacks have been fully transitioned from the 3.5.1 Framework? I'm assuming that it has, but not sure.

Another note... Simply installing 4.5 on some servers... with MOSS2K7, SP2010 services may be fun... ;-o

Pengelly answered 4/1, 2013 at 0:51 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.