Migrating umbraco 4.11.8 to new server with same specs
Hello, I'm having some issues migrating a live umbraco (v4.11.8) installation hosted on WinServer 2008 R2 with MSSQL Server Standard 2008 and IIS7.5 to a staging server with almost the same specs, the only difference is the SQL Server which is the MSSQL Server Web Edition 2008.
Basically what I've done during the process is what is suggested in many other posts related to this one. I've backed up the DB and then restore it into the new server. In terms of the files I just zipped the folder and moved over to the new server.
I have also added read/write permission rights to that folder for II_IUSRS group, so IIS can access web.config file.
When I'm trying to access the site, that's the error I've got:
Can someone please advise how can I solve this issue?
Thanks Dennis, that seemed to work, because at least it turned into something else. Now I'm having an error apparently because it couldn't load an assembly:
Parser Error Message: Could not load file or assembly 'System.Web.Helpers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
Thanks Sebastiaan, I've installed it now. The server is now asking that
Could not load file or assembly 'System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
There's no assembly line in the web.config file referring to that version of MVC 'System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
Thanks guys, your help is being so helpful, seems that everytime I add anything it keeps asking for new things, this time is this.
Server Error in '/' Application.
Could not load file or assembly 'System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
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.FileNotFoundException: Could not load file or assembly 'System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Assembly Load Trace: The following information can be helpful to determine why the assembly 'System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' could not be loaded.
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
Stack Trace:
[FileNotFoundException: Could not load file or assembly 'System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.]
System.Web.Mvc.PreApplicationStartCode.Start() +0
[InvalidOperationException: The pre-application start initialization method Start on type System.Web.Mvc.PreApplicationStartCode threw an exception with the following error message: Could not load file or assembly 'System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified..]
System.Web.Compilation.BuildManager.InvokePreStartInitMethodsCore(ICollection1 methods, Func1 setHostingEnvironmentCultures) +12619651
System.Web.Compilation.BuildManager.InvokePreStartInitMethods(ICollection`1 methods) +12619372
System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded) +280
System.Web.Compilation.BuildManager.ExecutePreAppStart() +172
System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +1151
[HttpException (0x80004005): The pre-application start initialization method Start on type System.Web.Mvc.PreApplicationStartCode threw an exception with the following error message: Could not load file or assembly 'System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified..]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +12618692
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +159
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +12458309
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34249
Jaime, it almost sounds like you don't have the full bin folder deployed to your site. It should have contained System.Web.Mvc.dll (v4.0.0.0) and should contain System.Web.WebPages.Razor.dll. Are you sure you deployed everything properly?
@Sebastiaan, I've copied the whole website directory from the live server, so whatever is in there, is what I have in the staging server. That's my frustration as I'm new with Umbraco and thought that just simply copying the files along and restoring the DB should be right, but it seems that it isn't that simple.
Is it somewhere I can download those assemblies I'm missing?
Sorry that that's been your first experience with Umbraco, we've improved it so much since version 4!
That said, the WebPages.Razor dll IS in the 4.11.8 package so it should be in your bin folder as well, make sure to compare your current bin folder with the bin folder in UmbracoCms.4.11.8.zip downloaded from here: https://our.umbraco.org/contribute/releases/4118/
Thanks, what I mean to do actually is perform the upgrade of the CMS in the live site, but before doing it there, I opted to set an staging environment first to avoid any chance of breaking anything in there. So because it's been developed by someone else, I having all of these dependency issues.
Now that I have copied all the .dll from the online version, the server is telling me this:
Server Error in '/' Application.
Could not load file or assembly 'System.Web.WebPages.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.WebPages.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)
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[FileLoadException: Could not load file or assembly 'System.Web.WebPages.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)]
System.Web.Mvc.PreApplicationStartCode.Start() +0
[InvalidOperationException: The pre-application start initialization method Start on type System.Web.Mvc.PreApplicationStartCode threw an exception with the following error message: Could not load file or assembly 'System.Web.WebPages.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).]
System.Web.Compilation.BuildManager.InvokePreStartInitMethodsCore(ICollection1 methods, Func1 setHostingEnvironmentCultures) +12619651
System.Web.Compilation.BuildManager.InvokePreStartInitMethods(ICollection`1 methods) +12619372
System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded) +280
System.Web.Compilation.BuildManager.ExecutePreAppStart() +172
System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +1151
[HttpException (0x80004005): The pre-application start initialization method Start on type System.Web.Mvc.PreApplicationStartCode threw an exception with the following error message: Could not load file or assembly 'System.Web.WebPages.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).]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +12618692
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +159
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +12458309
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34249
Ah, so the error you were getting was actually because there's a different version of the dll found in the GAC, so once again you have to tell Umbraco to use the version in your bin folder, add this to your web.config and see if that helps:
I've got it working now (sight), I downloaded the bin folder from the last 6.x.x version and pasted it on the staging bin folder.
Now the thing is to proceed with the upgrade, do you have any suggestions about it? knowing the version of the CMS I'm on (4.11.8), and aiming to the last version 7.x.x.
Yeah, my suggestion if you're new is good luck! :-)
It really depends on the packages and custom datatypes you have installed. Realistically, most people on 4.11 can get up to 6.2.5 without too many problems but in v7 the backoffice is almost completely rewritten and most custom datatypes will have to be replaced with newer versions. Your mileage may vary.
Migrating umbraco 4.11.8 to new server with same specs
Hello, I'm having some issues migrating a live umbraco (v4.11.8) installation hosted on WinServer 2008 R2 with MSSQL Server Standard 2008 and IIS7.5 to a staging server with almost the same specs, the only difference is the SQL Server which is the MSSQL Server Web Edition 2008.
Basically what I've done during the process is what is suggested in many other posts related to this one. I've backed up the DB and then restore it into the new server. In terms of the files I just zipped the folder and moved over to the new server.
I have also added read/write permission rights to that folder for II_IUSRS group, so IIS can access web.config file.
When I'm trying to access the site, that's the error I've got:
Can someone please advise how can I solve this issue?
Thanks
Hi Jaime and welcome to our.
Does the new server have the URL Rewrite installed. If not try to install it on the server and see if this solve the problem.
You can download the URL rewrite module http://www.iis.net/downloads/microsoft/url-rewrite
Hope this helps,
/Dennis
Thanks Dennis, that seemed to work, because at least it turned into something else. Now I'm having an error apparently because it couldn't load an assembly:
Make sure to install MVC on your server, see: http://stackoverflow.com/a/267021/5018
Thanks Sebastiaan, I've installed it now. The server is now asking that
There's no assembly line in the web.config file referring to that version of MVC 'System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
Hi Jaime,
Try to see this one http://stackoverflow.com/questions/29093832/add-assembly-system-web-mvc-version-4-0-0-0-culture-neutral-publickeytoken
And maybe this one as well http://umbraco.com/follow-us/blog-archive/2014/10/16/getting-a-systemwebhttpapicontroller-error
Hope this helps,
/Dennis
In your
runtime\assemblyBinding
section in yourweb.config
you probably need to change thebindingRedirect
onSystem.Web.Mvc
to 4.0.0.1:Thanks guys, your help is being so helpful, seems that everytime I add anything it keeps asking for new things, this time is this.
Hi Jaime,
Try to see this one http://stackoverflow.com/questions/11000506/could-not-load-file-or-assembly-system-web-webpages-razor-version-2-0-0-0
Hope this helps,
/Dennis
Jaime, it almost sounds like you don't have the full
bin
folder deployed to your site. It should have contained System.Web.Mvc.dll (v4.0.0.0) and should contain System.Web.WebPages.Razor.dll. Are you sure you deployed everything properly?@Sebastiaan, I've copied the whole website directory from the live server, so whatever is in there, is what I have in the staging server. That's my frustration as I'm new with Umbraco and thought that just simply copying the files along and restoring the DB should be right, but it seems that it isn't that simple.
Is it somewhere I can download those assemblies I'm missing?
Sorry that that's been your first experience with Umbraco, we've improved it so much since version 4!
That said, the WebPages.Razor dll IS in the 4.11.8 package so it should be in your bin folder as well, make sure to compare your current bin folder with the bin folder in
UmbracoCms.4.11.8.zip
downloaded from here: https://our.umbraco.org/contribute/releases/4118/Thanks, what I mean to do actually is perform the upgrade of the CMS in the live site, but before doing it there, I opted to set an staging environment first to avoid any chance of breaking anything in there. So because it's been developed by someone else, I having all of these dependency issues.
Now that I have copied all the .dll from the online version, the server is telling me this:
Ah, so the error you were getting was actually because there's a different version of the dll found in the GAC, so once again you have to tell Umbraco to use the version in your bin folder, add this to your web.config and see if that helps:
I've got it working now (sight), I downloaded the
bin
folder from the last 6.x.x version and pasted it on the stagingbin
folder.Now the thing is to proceed with the upgrade, do you have any suggestions about it? knowing the version of the CMS I'm on (4.11.8), and aiming to the last version 7.x.x.
Yeah, my suggestion if you're new is good luck! :-)
It really depends on the packages and custom datatypes you have installed. Realistically, most people on 4.11 can get up to 6.2.5 without too many problems but in v7 the backoffice is almost completely rewritten and most custom datatypes will have to be replaced with newer versions. Your mileage may vary.
Upgrade guides:
Then there's also a recommended upgrade path on this site: http://code.leekelleher.com/umbraco/archive/
I'm getting this error after I have install the path fixer package
is working on a reply...