Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • Garrett Fisher 341 posts 496 karma points
    Sep 29, 2015 @ 15:28
    Garrett Fisher

    Some Sort of MVC Version Mismatch?

    Trying to install a site locally from a git repo with a current database backup from the live site.

    Umbraco version is 4.11.5.

    Created new database, restored it from the BAK file. Pointed new IIS site to the webroot. Put in my local connectionstring. All good.

    Done this hundreds of times and haven't seen this error before. Fired up the site in the browser and:

        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)

    Been Googling all morning and haven't found a solution that works for me.

    Things I have tried include merging the originally canned web.config with the one I pulled down from Git, and copying over the original System.Web.*.dll's but to no avail - the error persists. Here is my assemblies section of web.config:

            <!-- ASP.NET 4.0 Assemblies -->
            <add assembly="System.Design, Version=, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
            <add assembly="System.Core, Version=, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
            <add assembly="System.Web.Extensions, Version=, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
            <add assembly="System.Xml.Linq, Version=, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
            <add assembly="System.Data.DataSetExtensions, Version=, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
            <add assembly="System.Web.Extensions.Design, Version=, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
            <add assembly="System.Web.Abstractions, Version=, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
            <add assembly="System.Web.Helpers, Version=, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
            <add assembly="System.Web.Routing, Version=, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
            <add assembly="System.Web.Mvc, Version=, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
            <add assembly="System.Web.WebPages, Version=, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

    Again, though - this is exactly the same as the canned web.config that comes with Umbraco 4.11.5.

    I have several other Umbraco sites running on this machine, all with varying versions of Umbraco, and don't have this error anywhere else. Is this some IIS configuration or something? I am out of ideas.



Please Sign in or register to post replies

Write your reply to: