Error: Visual C# Command Line Compiler has Stopped Working

Error: Visual C# Command Line Compiler has Stopped Working

book

Article ID: CTX135745

calendar_today

Updated On:

Description

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

Environment

Caution! Using Registry Editor incorrectly can cause serious problems that might require you to reinstall your operating system. Citrix cannot guarantee that problems resulting from the incorrect use of Registry Editor can be solved. Use Registry Editor at your own risk. Be sure to back up the registry before you edit it.

Resolution

Workaround

Caution! Refer to the Disclaimer at the end of this article before using Registry Editor.

Complete the following steps to resolve the issue:
  1. Back up the Registry editor.

  2. 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

Status

The is a known issue in msvcr80.dll.

Problem Cause

Microsoft identified that the defect in msvcr80.dll has caused the issue. Microsoft does not provide any hotfix to resolve the defect.
Microsoft suggested Citrix to replace msvcr80.dll with msvcr90.dll. However, Citrix cannot replace the library because of compatibility issues.

Issue/Introduction

This article provides a workaround for the error "Visual C# Command Line Compiler has stopped working"

Additional Information

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.