More in this section
Forums / Bugs & Issues / 8.1 Upgrade can not find System.Web.Mvc 4.0 error in MVC templates

8.1 Upgrade can not find System.Web.Mvc 4.0 error in MVC templates

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. Garry
    Garry avatar
    2 posts
    11 Sep 2014
    22 Jul 2015
    Link to this post


    I upgraded my dev solution to 8.1 and everything runs and compiles as expected, however when I publish the upgraded project to my production IIS box I am now getting the following error on my Feather MVC templates.

    Could not load file or assembly 'System.Web.Mvc, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040

    This same behavior happens with the Bootstrap, SemanticUI, and Foundations templates as well. I even deleted the ResourcePackages to those templates and copied out the new Feather version ones as still same error. Web Form templates work as expected.

    I checked web.config and System.Web.Mvc 5.0 is referenced and the dll is in the bin directory.

    What am I missing?






  2. Svetoslav Manchev
    Svetoslav Manchev avatar
    735 posts
    06 Sep 2017
    27 Jul 2015
    Link to this post
    Hello Garry,

    Do you have any external MVC assemblies in your project?

    Please aslo che if you have the following assemblyBinding redirect in your web.config file:
      <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
      <bindingRedirect oldVersion="" newVersion="" />

    You can also try to upgrade the nuget packages and change the Target Framework as described here:

    Svetoslav Manchev
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
2 posts, 0 answered