.NET 4.0 and 4.5.1 on the same server, what gives problems?

Is it possible to install the .NET 4.0 and .NET 4.5.1 runtimes on the same application server so that .NET 4.0 oriented web applications and .NET 4.5.1 oriented web applications run smoothly?

(I heard from colleagues that 4.5.1 will break 4.0 applications after installing 4.5.1 ...)

+3
source share
1 answer

No , at the moment there is no such way (this means that you heard from your colleagues quite correctly!) I think this is a known problem, and yes 4.5.1 overwrites 4.5 so make sure you have the same version installed on your development machine and server. You can get more information about your issue on this MSDN blog. MSDN

Because if you are developing Targeting.NET 4.0, then you are clearly planning to run it on a machine that does NOT have .NET 4.5!

You need to target your .Net4.0 infrastructure to get rid of your problem.

+1
source

All Articles