1 Followers
26 Following
quiltbird58

quiltbird58

SPOILER ALERT!

In regards to the server deployment Program.Web.Pages.Razor technique can not locate the file. Txt

file recovery from usb for the issue: Couldnotloadfileorassembly'System.Net.WebPages.Razor,Version=2.0.0.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35'oroneofitsdependencies

This dilemma has no problem in neighborhood deployment, and Razor is included in WebPages, which is usually accessed locally. This error happens when the release version is deployed around the server. Soon after looking in recover data from usb stick for any extended time, I lastly identified the issue of downloading the MVC version from Nuget

This machine uses the version of nuget3.4, the downloaded MVC is version five.2.three. Just after uninstalling FQ (installation requires FQ), install PMInstall-PackageMicrosoft.AspNet.Mvc-Version4.0.30506 in the package management console in VS and deploy once more immediately after the installation is total, the issue is solved

This difficulty record to help close friends who encounter equivalent challenges with this difficulty supply inspiration



Reference hyperlink: http://stackoverflow.com/questions/11000506/could-not-load-file-or-assembly-system-web-webpages-razor-version-2-0-0-0