Missing System.Web.WebPage.Razor DLL v2.0.0.0 after upgrade from 8.2 to 9?

Paul Higgs asked on March 26, 2021 17:18

I've been updating a site from 7.0, now at the 8.2 to 9.0 upgrade and I get this error after the upgrade on first start-up.

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.

Server is 2012R2, Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4330.0

Looks like after the upgrade to 9 various MVC files were removed from the /CMS/bin folder of the 8.2 project, including the System.Web.WebPages.Razor.dll.

If I manually copy those file back, then we get a compilation error in UpgradeProcedure.cs:

Compiler Error Message: CS1660: Cannot convert lambda expression to type 'System.Collections.Generic.IEqualityComparer

Recent Answers


Paul Higgs answered on March 26, 2021 17:29

Ok think I found the fix for the compilation issue (due to .NET update) see https://devnet.kentico.com/articles/kentico-9-and-the-windows-10-april-2018-update

Why did the upgrade remove the files it needed? I assume safe to copy across from the 8.2 backup, and then see what happens in the 9.0 to 10.0 upgrade.

Thanks

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.