tags:

views:

406

answers:

3

to run both 3.5 and 4.0 web apps?

+1  A: 

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

Pent Ploompuu
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%
Keith Nicholas
+2  A: 

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.

Ash
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#)
Pent Ploompuu
@Pent, good point, I think I'm actually answering a different question.
Ash
seems to imply you need to install 3.5 and 4.0
Keith Nicholas
I'll accept this as its pretty much the right answer with a bunch of other cruft :)
Keith Nicholas
A: 

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

It appears you need to install side by side.

Keith Nicholas