I have a web app running ASP.NET MVC 2 along with other sites (using ASP.NET MVC 4), updated IIS7 to use .NET 4.5 and my MVC2 app stop working properly:
Issue: (blocker)
There is a duplicate 'system.web.extensions/scripting/scriptResourceHandler' section definedthe solution: comment out a section of web.config, based on http://forums.asp.net/p/1571308/3939106.aspx:Issue: (blocker) Login stop working, the solution add this line
<machineKey validation="SHA1"/>to web.config, based on Login fails after upgrade to ASP.net 4.0 from 3.5:Issue: One of the views is giving a Compilation Error:
CS0104: 'ContainerType' is an ambiguous reference between 'System.Web.DynamicData.ContainerType' and 'MVFleet2.Core.ContainerType'
on this line :
<%foreach (var specs in (List<ContainerType>)ViewData["ContainerTypes"])
This error never happened before the update, I know the obvious solution is to use the full name for the cast, but I'm looking for a solution so i can force the web app to run in the context of .NET 3.5 and bypass this issues, so i don't have to deal with this and probably more issues in the future... is this possible?