1

I just write Web service successfully run on local server but when i Upload the api to web server the following error occur .

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: The CodeDom provider type "Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" could not be located.

jarlh
  • 42,561
  • 8
  • 45
  • 63
Haris Zafar
  • 35
  • 1
  • 7
  • Possible duplicate of [The CodeDom provider type "Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider" could not be located](https://stackoverflow.com/questions/33319675/the-codedom-provider-type-microsoft-codedom-providers-dotnetcompilerplatform-cs) – Roman Patutin Jun 11 '19 at 12:23
  • Follow this Link [enter link description here](https://stackoverflow.com/questions/33319675/the-codedom-provider-type-microsoft-codedom-providers-dotnetcompilerplatform-cs) – Bharath Jun 11 '19 at 12:26

2 Answers2

2

Haris Zafar, you are missing this Infrastructure package in your project.

Enter Tools> NuGet Package Manager> Package Manager Console and enter this command:

PM> Install-Package Microsoft.Web.Infrastructure

FabioIn
  • 167
  • 1
  • 2
  • 8
0

Upgrade the package Microsoft.CodeDom.Providers.DotNetCompilerPlatform to latest version by downloading it from NuGet.

Selim Yildiz
  • 5,254
  • 6
  • 18
  • 28