Solved: “Cannot execute a program. The command being executed was \roslyn\csc.exe”
2016-11-24 21:38
701 查看
When you publish your ASP.NET project to a hosting account such as GoDaddy, you may run into the issue below. This issue may occur even though your code works fine in localhost.
Server Error in ‘/’ Application.
.
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
.
Parser Error Message: Cannot execute a program. The command being executed was “G:\PleskVhosts\website.com\httpdocs\bin\roslyn\csc.exe” /shared /keepalive:”10″ /noconfig /fullpaths @”C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NETFiles\root\4a4c810d\6d29243e\slpxwrhm.cmdline”.
Ffollow “Tools > NuGet Package Manager > Manage NuGet Packages for Solution” in Visual Studio
Find “DotNetCompilerPlatform” and uninstall it
Server Error in ‘/’ Application.
.
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
.
Parser Error Message: Cannot execute a program. The command being executed was “G:\PleskVhosts\website.com\httpdocs\bin\roslyn\csc.exe” /shared /keepalive:”10″ /noconfig /fullpaths @”C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NETFiles\root\4a4c810d\6d29243e\slpxwrhm.cmdline”.
Resolution
A simple solution for this issue is that removing Roslyn compiler plugin from your project and using old compiler. In order to remove Roslyn:Ffollow “Tools > NuGet Package Manager > Manage NuGet Packages for Solution” in Visual Studio
Find “DotNetCompilerPlatform” and uninstall it
相关文章推荐
- 问题:Cannot execute a program. The command being executed was "C:\Windows\Microsoft.NET\Framework\v2.0.50727\csc.exe"
- Excel- There was a problem sending the command to the program
- 阿里云 esc 云服务器无缘无故的一次/usr/bin 目录丢失导致整个服务无法启动 # ./shutdown.sh ./shutdown.sh: line 41: dirname:command not found cannot find /catalina.sh the find /catalina.sh The file is absent or does not have execute
- Excel 错误提示“There was a problem sending the command to the program”
- android Cannot execute task: the task has already been executed (a task can be executed only once)
- Excel 2010出现there was a problem sending the command to the program解决
- 解决VS2012 Express的There was a problem sending the command to the program问题
- midl : command line error MIDL1004 : cannot execute C preprocessor cl.exe
- Cannot update VMware Tools correctly :the configuration program is to be executed in a virtual match
- AsyncTask 错误java.lang.IllegalStateException: Cannot execute task: the task has already been executed
- AsyncTask时异常: Cannot execute task: the task has already been executed (a task can be executed only o
- 解决 Previous operation has not finihsed; run ‘cleanup’ if it was interrupted Please execute the ‘Cleanup’ command
- Excel there was a problem sending the command to the program
- Debug 'The System cannot Execute the specified program' message
- Excel 2007 - There was a problem sending the command to the program
- [乐意黎原创] excel 2007第一次打开时显示there was a problem sending command to the program,再打开一次就能打开了。
- The system cannot execute the specified program.
- GNS3连接VMware出现error could not execute vmrun:Command "C:\\program files (x86)\\vmwork\\vmrun.exe,'-T'
- How to Debug 'The System cannot Execute the specified program' message
- 解决VS2012 Express的There was a problem sending the command to the program问题