Getting Error whi

2019-06-06 18:02发布

I am using WEB API 2 its working in my local system,but when WEB API 2 run in Hostgator windows server its given me error below is my error screenshot

http://prntscr.com/bc5ihv

1条回答
劳资没心,怎么记你
2楼-- · 2019-06-06 18:19

As I commented, I got similar problem while hosting web api on shared hosting. The solution is to remove Microsoft.CodeDom.Providers.DotNetCompilerPlatform package and clean and build

You can deploy even without Roslyn with no change in code. Open NuGet Package Manager window and uninstall Microsoft.CodeDom.Providers.DotNetCompilerPlatform package and rebuild & republish. This uninstallation also removes CodeDom configuration from web.config file. This will solve your purpose. Basically this will not generate any csc.exe, vbc.exe files inside bin folder.

I got it from here

查看更多
登录 后发表回答