Visual Studio 2010 Build Error

Topics: Installing Orchard, Troubleshooting, Writing modules, Writing themes
Nov 21, 2012 at 4:36 AM

Hi, I'm trying to build Orchard right out of the box.  After downloading via Web Platform Installer and importing the website in VS 2010, when I build I get the following error:

Assembly 'Orchard.Web, Version=1.6.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' which has a higher version than referenced assembly 'System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'

Any idea's why I'm seeing this?

Nov 21, 2012 at 4:54 AM
Edited Nov 21, 2012 at 4:58 AM

Someone correct me if I'm wrong: Orchard 1.6(.0.0) uses Mvc4. VS2010 can use Mvc4, but only if you updated it to do so (in essence your machine needs Mvc4 as well). Maybe that's your error?

Otherwise, if you are using Orchard.Source, just update the reference to Mvc4(.0.0.0) (and also update WebPages from 1.0 to 2.0(.0.0?).

Nov 21, 2012 at 3:32 PM

Ok, so I made the mistake of trying to build it from Orchard.Web.  I just built from Orchard.Source and everything was successful.  Thanks.