Reputation: 57
Could not load file or assembly 'Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The module was expected to contain an assembly manifest.
Why do I keep getting this error and how can I fix it?
Upvotes: 0
Views: 1268
Reputation: 433
Error is causing because the Nuget package Microsoft.CodeDom.Providers.DotNetCompilerPlatform
(which also contains the CodeAnalysis package) was the wrong version.
create new web application and update Nuget package.
Upvotes: 1
Reputation: 2262
Try to uninstall and reinstall the package
Uninstall-Package Microsoft.CodeDom.Providers.DotNetCompilerPlatform -force
Install-Package Microsoft.CodeDom.Providers.DotNetCompilerPlatform
Upvotes: 2