error after upgrade mvc

lawrence whittemore asked on December 11, 2019 16:40

I just updated to the latest version of kentico and get this errorThe CodeDom provider type "Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" could not be located.

Recent Answers


Brenden Kehren answered on December 11, 2019 17:49

Make sure you have the Rosilyn compiler nuget package installed.

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on December 11, 2019 20:44

Please check that you have version 2.0.1 of Microsoft.Codedom.Providers.DotNetCompilerPlatform NuGet package installed for the MVC project. You can check it by opening the MVC project in Visual Studio -> right-click solution -> Manage NuGet Packages for Solution -> Installed -> search for Microsoft.CodeDom.Providers.DotNetCompilerPlatform.

0 votesVote for this answer Mark as a Correct answer

lawrence whittemore answered on December 11, 2019 21:19

It looks like it was there and the site just needed a rebuild. I'm just starting to learn the process to build MVC sites. Is it common that after an update we will need to rebuild?

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on December 11, 2019 21:30

Yes simply because you're using a web application vs. a website.

0 votesVote for this answer Mark as a Correct answer

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