Why is csc.exe being overwritten when compilation errors occur in CodeDomCompiler?

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
This is a problem which started popping up amongst myself and my coworkers on 10/9/2012.

We have a c# project which uses CodeDomCompiler to build one of the projects assemblies. If there are no compilation errors things work fine, but when there is a compilation error in the assembly built using CodeDomCompiler, csc.exe is overwritten
with a 1KB file and the following error appears in the Event Viewer under Application:
<span style="font-size:x-small <span lang="EN
<span style="font-size:x-small
The program or feature "??C:WindowsMicrosoft.NETFrameworkv4.0.30319csc.exe" cannot start or run due to incompatibity with 64-bit versions of Windows. Please contact the software vendor to ask if a 64-bit Windows compatible version is available.
Also, the following is returned from CodeDomCompiler:
<span style="font-family:Calibri,sans-serif; font-size:11pt Cannot execute a<br/>
program. The command being executed was<br/>
"C:WindowsMicrosoft.NETFrameworkv4.0.30319csc.exe" /noconfig<br/>
/fullpaths @"D:devvNextSourceSyncGis..WebApplicationCore\..Unit<br/>
Test Dropytkmqzgm.cmdline".
<span style="font-family:Calibri,sans-serif; font-size:11pt In order to try to work around this problem we have been copying over the corrupted csc.exe with a proper copy of the file and marking it as read-only in the hopes that whatever is corrupting
it will be thwarted (and that the subversive process will throw some sort of error that will compromise its stealth), but this doesnt seem like something that should be happening no matter how many compile errors occur when using CodeDomCompiler.

Any ideas on what could be causing this, or if anything can be done about it?

People experiencing this problem are running Windows 7 Professional and Microsoft Visual Studio 2010 Premium.
The following updates have been installed this week (10/8/2012 - 10/12/2012)
KB2647753, KB2661254, KB2705219, KB2724197, KB2729094, KB2731771, KB2731847, KB2732487, KB2732500, KB2739159, KB2743555, KB2749655, KB2749655, KB2756822.

View the full article
 
Back
Top