This project is read-only.

Could not load file or assembly System.Web.Mvc, Version=

Topics: Core
Oct 15, 2014 at 12:12 PM
Anybody seen this? Funny thing is, I started getting this after a Windows reinstall, no idea why. Apparently somehow it tries to load MVC 5.2 although nothing in Orchard requests that (but 5.1).

So unless I add an assembly redirect so everything gets redirected to 5.1 I get this.

The fusion log doesn't tell what tries to load the 5.2 version just that it then tries to load the 5.1 from the lib folder (correctly).
Jan 27, 2015 at 7:05 AM
I have the exact same issue when I try to run freshly downloaded 1.8.1 source.
Jan 27, 2015 at 8:39 AM
Same here, I had to change Orchard.Web web.config to point at
Jan 27, 2015 at 11:48 AM
I think it's related to a Windows update (maybe even 8.1), I think Sebastien also hinted something about this.
Jan 27, 2015 at 1:27 PM
I can confirm that I have Win 8.1
Jan 27, 2015 at 2:01 PM
For those who don't know what to do to fix it, open web.config of Web project in Orchard solution and find a line:
<bindingRedirect oldVersion="" newVersion=""/>
and change it to
<bindingRedirect oldVersion="" newVersion=""/>
Jun 3, 2015 at 1:50 PM
Edited Jun 3, 2015 at 3:21 PM
Windows 8.1 + WebMatrix + Orchard 1.8
After changing string "System.Web.Mvc, Version=5.1.0..." to "System.Web.Mvc, Version=5.2.0..." I got exception from "C:\Docs\My Web Sites\orchtest\web.config", string 49 - "<add assembly="System.Web.Mvc, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />" - can't load assembly "'System.Web.Mvc, Version=" :(

With version Orchard 1.8.1 is all right!