Problem reason: Could not load file or assembly ' System.Web.WebPages.Razor, version=2.0.0.0, Culture=neutral, publickeytoken= 31bf3856ad364e35 ' or one of its dependencies
There is no problem with this issue on-premises, and Razor is included in webpages, which can be accessed locally and accessed when the release version is deployed to the server. In Baidu search for a long time, and finally found to download the MVC version from NuGet issue
This machine is nuget3.4 version, and the MVC download is version 5.2.3. After uninstall FQ (installation requires FQ) in VS Package management Console installation Pm>install-package Microsoft.aspnet.mvc-version 4.0.30506 installation is complete again after deployment, problem resolution
This issue is documented to help inspire friends who encounter similar problems with this difficulty
Reference Link: http://stackoverflow.com/questions/11000506/could-not-load-file-or-assembly-system-web-webpages-razor-version-2-0-0-0
About the server deployment System.WEB.Pages.Razor system could not find the file