Copied to clipboard

Flag this post as spam?

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


  • Joachim Andersen 38 posts 198 karma points
    Nov 27, 2013 @ 12:51
    Joachim Andersen
    0

    Unable to install Umbraco7 on Windows Web Server 2008 R2

    Hi,

    I'm having problems with installing Umbraco 7 on one of our production servers. To begin with I get errors related to the version of the Razor dlls (v2 vs v3):

    Could not load file or assembly 'System.Web.Razor, Version=2.0.0.0, 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)

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

    Exception Details: System.IO.FileLoadException: Could not load file or assembly 'System.Web.Razor, Version=2.0.0.0, 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)

    But after fixing that in the web.config I get the following error when loading the site:

    Could not load types from assembly umbraco.MacroEngines, Version=1.0.5073.23301, Culture=neutral, PublicKeyToken=null, errors:
    Exception: System.IO.FileLoadException: Could not load file or assembly 'System.Web.Razor, Version=2.0.0.0, 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)
    File name: 'System.Web.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'

    Has anybody else had this problem and what can I do to fix it?

    Note that the same install works fine on Windows 7 IIS and IIS Express as well as on windows 8 IIS and IIS Express.

    Cheers Joachim

  • Stefan Kip 1614 posts 4131 karma points c-trib
    Nov 27, 2013 @ 13:26
  • Joachim Andersen 38 posts 198 karma points
    Nov 27, 2013 @ 14:23
    Joachim Andersen
    100

    Not sure about what the solution in yout link has to do with my problem, but I got it working after downgrading <package id="Microsoft.AspNet.Razor" version="3.0.0" targetFramework="net45" /> to <package id="Microsoft.AspNet.Razor" version="2.0.30506.0" targetFramework="net45" /> and <package id="RazorEngine" version="3.4.0" targetFramework="net45" /> to <package id="RazorEngine" version="3.3.0" targetFramework="net45" />

  • Joachim Andersen 38 posts 198 karma points
    Nov 27, 2013 @ 14:24
    Joachim Andersen
    0

    And it is not related to the windows version.

  • Stefan Kip 1614 posts 4131 karma points c-trib
    Nov 27, 2013 @ 14:25
    Stefan Kip
    0

    No it's related to the installed MVC version, you should install MVC4 on your server.

  • Joachim Andersen 38 posts 198 karma points
    Nov 27, 2013 @ 14:38
    Joachim Andersen
    0

    Ok, not sure it was the problem here, because I've installed <package id="Microsoft.AspNet.Mvc" version="4.0.30506.0" targetFramework="net45" /> in the solution now where it is working. But it works now so . . .

Please Sign in or register to post replies

Write your reply to:

Draft