Jamie Obrien
Jamie Obrien

Reputation: 57

What does this error message mean in ASP.NET "Server Error in '/' Application."

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

Answers (2)

Techno Crave
Techno Crave

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

Nomi Ali
Nomi Ali

Reputation: 2262

Try to uninstall and reinstall the package

Uninstall-Package Microsoft.CodeDom.Providers.DotNetCompilerPlatform -force
Install-Package Microsoft.CodeDom.Providers.DotNetCompilerPlatform

Upvotes: 2

Related Questions