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.
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" />
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 . . .
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
https://www.google.nl/#q=site%3Aour.umbraco.org+System.Web.Razor+Version%3D2.0.0.0
First hit:
http://our.umbraco.org/forum/getting-started/installing-umbraco/46325-Trouble-deploying-to-server-Could-not-load-file-or-assembly-SystemWebWebPagesRazor,-Version=1000?p=0
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" />
And it is not related to the windows version.
No it's related to the installed MVC version, you should install MVC4 on your server.
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 . . .
is working on a reply...