We are developing ASP.NET MVC application. We are using a latest version of the frameworks. So I need to update a software after each framework's upgrade. It easy to do on the developer's machine: you can use web or standalone installer or nuget package.
Usual I used to run installer on the server for the previous version of ASP.NET MVC. But I noticed that installer for ASP.NET MVC 4 contains SQL Express Server and Visual Studio Express 2012 for Web. They are definitely not tools for the server's PC. I carried on with googling and found out that ASP.NET MVC 4 doesn't need any extra library in GAC. It requests .NET Framework (4 or 4.5) on the server and it all.
I deployed my latest (created as ASP.NET MVC 4) project on the server and it run without any concerns. But when I deployed 'migrated' project, it was crashed. I checked log file and found that latest (ASP.NET MVC 4) libraries weren't included.
I deployed my latest (created as ASP.NET MVC 4) project on the server and it run without any concerns. But when I deployed 'migrated' project, it was crashed. I checked log file and found that latest (ASP.NET MVC 4) libraries weren't included.
To fixed it I needed to go in Visual Studio by the next path: Solution Explorer/MyProject/References and change 'Copy Local' value to 'true' in the properties of the number included references.
List of references that I added and/or changed 'Copy Local' property in my project:
- System.Web.Mvc
- System.Web.Helpers
- System.Web.WebPages
- System.Web.WebPages.Deployment
- System.Web.WebPages.Razor
- System.Web.Razor
Some of this references weren't included in my project, some of them were under 'Reference Manager'/Assemblies/Framework some were under 'Reference Manager'/Assemblies/Extensions - be aware.
1 comment:
Great information about asp.net migration technology.
ASP.Net Migration
Post a Comment