csc.exe has stopped working causes Server Error in '/' Application
14,579
Solution 1
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.
Solution 2
I too faced the same issue.After I delete files in the bin folder and run the application.The issue is fixed.
Author by
etrupja
Updated on June 07, 2022Comments
-
etrupja almost 2 years
When I run my application on
VS2015
I get a window saying thatcsc.exe has stopped working
like below:
After I click to close the program I get another error in the browser saying:
Server Error in '/' Application.
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?
-
Ted over 7 yearsI take it back. deleting the roslyn folder leads to that: stackoverflow.com/questions/32780315/…
-
WasiF over 6 yearsone of the easiest step, that worked for me. highfive
-
Don H about 5 yearsI just found out that you don't have to close all your Visual Studio instances. 1. Just stop all debug sessions 2. Clean Solution 3. Navigate to you ~/bin folder. 4. Shift+Delete you roslyn folder. 5. Rebuild Solution (and the Roslyn folder should appear) 6. Run