Lỗi Runtime Error khi publish Web – Visual Studio 2015

Sau khi publish, gặp lỗi sau

Cannot execute a program. The command being executed was "D:\HostingSpaces\XXXXX\wwwroot\bin\roslyn\csc.exe" /shared /keepalive:"10" /noconfig /fullpaths @"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\f282ca1d\e26e10c7\xj0hprs3.cmdline".

Thực hiện bước sau:

Click chuột phải trên Project -> select Publish -> go to Settings -> extend File Publish Options

Chọn thiết lập Precompile -> click on Configure -> Bỏ chọn Allow precompiled site to be updated

Click OK

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s