When opening the published application, the application crashes with the error message “Visual C# Command Line Compiler has stopped working”.
The following excerpt from the event log of csc.exe application shows the details of the crash:
Event ID 1000 Faulting application name: csc.exe, version 8.0.50727.4927, time stamp: 0x4a277e92 Faulting module name: ntdll.dll, version 6.31.7601.17725, time stamp: 0x4ec49b8f Exception code: 0xc0000005 Faulting application path: C:\Windows\Microsoft.NET\Framework\v2.0.50727\csc.exe Faulting module path: C:\Windows\SysWOW64\ntdll.dll
Caution! Refer to the Disclaimer at the end of this article before using Registry Editor.
Complete the following steps to resolve the issue:Back up the Registry editor.
Edit the Registry editor to exclude the CtxHook application as shown in the following snippet:
Key: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Citrix\CtxHook
Value Name: ExcludedImageNames
Type: REG_SZ
Value: csc.exe,cvtres.exe
The defect in msvcr80.dll leads to recursive stack overflow. The Visual Studio 2005 is in extended support phase and the defect does not cause any security vulnerability issues.