Can we run MVC4 application in Sitecore CMS 7.2 rev.140526 or is MVC5 required?
I have installed visual studio 2012 (which supports MVC4 and .NET 4.5) and Sitecore CMS 7.2 rev.140526. I can get Sitecore up and running with admin and the website up and running.
I went through this MVC Integration with Sitecore tutorial which builds an MVC application in visual studio and then integrates into the Sitecore CMS site. When I followed the same steps I got an error. The MVC version used in this tutorial is MVC3 and the Sitecore version is 7.1.
I tried the same in my machine but got an error Could not load file or assembly 'System.Web.Mvc, Version=5.1.0.0
. From the error I understand that it is looking for MVC5, but on the machine I only have MVC4.
Is there a way to resolve this? First of all, is Sitecore 7.2 compiled to MVC4 or MVC5?
source to share
Here is the Sitecore compatibility table:
https://kb.sitecore.net/articles/087164
It clearly states that Sitecore 7.1 is MVC 4 compliant, but newer Sitecore versions (7.2 and 7.5) do not support MVC 4 and require ASP.NET MVC 5.1
source to share