Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

csc.exe has stopped working causes Server Error in '/' Application

When I run my application on VS2015 I get a window saying that csc.exe has stopped working like below:
enter image description here

After I click to close the program I get another error in the browser saying:

Server Error in '/' Application.

enter image description here

Detailed Compiler output looks like below:

C:\Program Files (x86)\IIS Express>D:_myURL\bin\roslyn\csc.exe /t:library /utf8output /nostdlib+ /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Runtime.dll"

What could be the issue?

like image 637
etrupja Avatar asked Aug 02 '16 08:08

etrupja


2 Answers

I faced the same issue and I would suggest to follow the steps described here:

  • Close all instances of Visual Studio 2015 and if they don't do it automatically disappear, end tasks for all the VBCSCompiler processes.
  • In your Visual Studio project under Bin folder you will see a roslyn folder (new for VS 2015)
  • Delete the roslyn folder and all contents within.
  • Restart Visual Studio 2015
  • Re Build your project and all should be well again.
like image 68
Aimal Khan Avatar answered Sep 21 '22 12:09

Aimal Khan


I too faced the same issue.After I delete files in the bin folder and run the application.The issue is fixed.

like image 21
Sathish Avatar answered Sep 19 '22 12:09

Sathish