Reputation: 9578
Can .NET 4.0 and .NET 4.5.1 runtime be installed on one application server so that web apps targeting .NET 4.0 and web apps targeting .NET 4.5.1 will be running smoothly ?
(I heard from collegaes that 4.5.1 will break 4.0 apps after 4.5.1 is installed...)
Upvotes: 3
Views: 323
Reputation: 172628
No there is no such way as of now.(that mean what you have heard from your colleagues is quite right!) I think it is a known issue and yes 4.5.1 overwrites 4.5 so make sure you have the same version installed on your development machine and on the server. You may definitely get some more info of your problem in this MSDN blog and this MSDN
Because if you develop "Targeting .NET 4.0", then you clearly plan to run on a machine that DOES NOT HAVE .NET 4.5!
You need to target the .Net4.0 framework to get rid of your problem
Upvotes: 1