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.
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