Cannot execute csc.exe
-
Sunday, April 22, 2012 6:25 PM
I am getting the following error message on Win 2008 R2 Ent x64.
- I have reinstalled the Win 2008 R2 service pack 1.
- I have unintall/reinstall IIS.
- I did aspnet_regiis.exe -u followed by aspnet_regiis.exe -iru in (C:\Windows\Microsoft.NET\Framework64\v2.0.50727)
- Used a non-anonymous account to impersonate
- Disabled thefirewall.
- Ran sfc /scannow with no problems.
- Deleted the files fom the temp directory.
- Server is up2date with all the patches.
So far nothing has helped. Please help.Server Error in '/Test' Application.
--------------------------------------------------------------------------------
Cannot execute a program. The command being executed was "C:\Windows\Microsoft.NET\Framework64\v2.0.50727\csc.exe" /noconfig /fullpaths @"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\rrtest\4deea330\df87be66\gpb5umpy.cmdline".Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Runtime.InteropServices.ExternalException: Cannot execute a program. The command being executed was "C:\Windows\Microsoft.NET\Framework64\v2.0.50727\csc.exe" /noconfig /fullpaths @"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\rrtest\4deea330\df87be66\gpb5umpy.cmdline".
Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.Stack Trace:
[ExternalException (0x5): Cannot execute a program. The command being executed was "C:\Windows\Microsoft.NET\Framework64\v2.0.50727\csc.exe" /noconfig /fullpaths @"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\rrtest\4deea330\df87be66\gpb5umpy.cmdline".]
System.CodeDom.Compiler.Executor.ExecWaitWithCaptureUnimpersonated(SafeUserTokenHandle userToken, String cmd, String currentDir, TempFileCollection tempFiles, String& outputName, String& errorName, String trueCmdLine) +2595
System.CodeDom.Compiler.Executor.ExecWaitWithCapture(SafeUserTokenHandle userToken, String cmd, String currentDir, TempFileCollection tempFiles, String& outputName, String& errorName, String trueCmdLine) +6942609
Microsoft.CSharp.CSharpCodeGenerator.Compile(CompilerParameters options, String compilerDirectory, String compilerExe, String arguments, String& outputFile, Int32& nativeReturnValue, String trueArgs) +326
Microsoft.CSharp.CSharpCodeGenerator.FromFileBatch(CompilerParameters options, String[] fileNames) +886
Microsoft.CSharp.CSharpCodeGenerator.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromFileBatch(CompilerParameters options, String[] fileNames) +229
System.CodeDom.Compiler.CodeDomProvider.CompileAssemblyFromFile(CompilerParameters options, String[] fileNames) +42
System.Web.Compilation.AssemblyBuilder.Compile() +10887767
System.Web.Compilation.BuildProvidersCompiler.PerformBuild() +247
System.Web.Compilation.CodeDirectoryCompiler.GetCodeDirectoryAssembly(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories, Boolean isDirectoryAllowed) +11231115
System.Web.Compilation.BuildManager.CompileCodeDirectory(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories) +185
System.Web.Compilation.BuildManager.CompileCodeDirectories() +654
System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +658
[HttpException (0x80004005): Cannot execute a program. The command being executed was "C:\Windows\Microsoft.NET\Framework64\v2.0.50727\csc.exe" /noconfig /fullpaths @"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\rrtest\4deea330\df87be66\gpb5umpy.cmdline".]
System.Web.Compilation.BuildManager.ReportTopLevelCompilationException() +76
System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +1012
System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters) +1025
[HttpException (0x80004005): Cannot execute a program. The command being executed was "C:\Windows\Microsoft.NET\Framework64\v2.0.50727\csc.exe" /noconfig /fullpaths @"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\rrtest\4deea330\df87be66\gpb5umpy.cmdline".]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +11335894
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +88
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +11209384--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.5448; ASP.NET Version:2.0.50727.5456- Edited by skb007 Sunday, April 22, 2012 6:35 PM
- Moved by Forrest Guo Sunday, April 29, 2012 2:44 AM .Net framework verification shows .NET is good. (From:.NET Framework Setup)
All Replies
-
Sunday, April 22, 2012 6:56 PM
The c# compiler uses the LIB environmental variable to determine where the libraries are found on you computer.
1) You may not have the LIB path setup properly with all theh libraries required by your source code.
2) What libraries is your program using ?
3) What is the complete command line you are using?
4) What folder are you executing from
5) Are you compiling with admin priviledges?
6) Was the Net Library installed with admin priviledge or user priviledge?
I suspect the temporary file can't be created due to a priveldge error.
jdweng
-
Sunday, April 22, 2012 7:28 PM
I am the sysadmin, there is another team who manage the code. I will get the answers for point # 1 ,2 & 3 from the development team.
4. Code is being executed from c:/inetpub/wwwroot/rrtest directory.
5. Code has been compiling with administrative rights.
6. Everything on the server has been installed with administrative privileges.
I do see the following file being created in the temp firectory alongwith various other files:
C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\rrtest\4deea330\df87be66\gpb5umpy.cmdline
Following are the contents of the above file:
*******************************************************************
/t:library /utf8output
/R:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\rrtest\4deea330\df87be66\assembly\dl3\9d07a890\3bcb1ffd_70becc01\System.Web.Extensions.Design.DLL"
/R:"C:\Windows\assembly\GAC_MSIL\System.WorkflowServices\3.5.0.0__31bf3856ad364e35\System.WorkflowServices.dll"
/R:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\mscorlib.dll"
/R:"C:\Windows\assembly\GAC_MSIL\System.Core\3.5.0.0__b77a5c561934e089\System.Core.dll"
/R:"C:\Windows\assembly\GAC_64\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll"
/R:"C:\Windows\assembly\GAC_MSIL\System.Data.Linq\3.5.0.0__b77a5c561934e089\System.Data.Linq.dll"
/R:"C:\Windows\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll"
/R:"C:\Windows\assembly\GAC_MSIL\System.IdentityModel\3.0.0.0__b77a5c561934e089\System.IdentityModel.dll"
/R:"C:\Windows\assembly\GAC_MSIL\System.Design\2.0.0.0__b03f5f7f11d50a3a\System.Design.dll"
/R:"C:\Windows\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll"
/R:"C:\Windows\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll"
/R:"C:\Windows\assembly\GAC_MSIL\System.ServiceModel.Web\3.5.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll"
/R:"C:\Windows\assembly\GAC_MSIL\System.Runtime.Serialization\3.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll"
/R:"C:\Windows\assembly\GAC_MSIL\System.ServiceModel\3.0.0.0__b77a5c561934e089\System.ServiceModel.dll"
/R:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\rrtest\4deea330\df87be66\assembly\dl3\e4c05b37\4e3e7e4d_71becc01\AjaxControlToolkit.DLL"
/R:"C:\Windows\assembly\GAC_64\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll"
/R:"C:\Windows\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll"
/R:"C:\Windows\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll"
/R:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\rrtest\4deea330\df87be66\assembly\dl3\cda995b2\6c5979fa_70becc01\System.Web.Extensions.DLL"
/R:"C:\Windows\assembly\GAC_MSIL\System.Windows.Forms\2.0.0.0__b77a5c561934e089\System.Windows.Forms.dll"
/R:"C:\Windows\assembly\GAC_MSIL\System.Web.Abstractions\3.5.0.0__31bf3856ad364e35\System.Web.Abstractions.dll"
/R:"C:\Windows\assembly\GAC_64\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll"
/R:"C:\Windows\assembly\GAC_MSIL\System.Web.Mobile\2.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll"
/R:"C:\Windows\assembly\GAC_MSIL\System.Data.Services.Design\3.5.0.0__b77a5c561934e089\System.Data.Services.Design.dll"
/R:"C:\Windows\assembly\GAC_MSIL\System.Data.Entity\3.5.0.0__b77a5c561934e089\System.Data.Entity.dll"
/R:"C:\Windows\assembly\GAC_MSIL\System.Data.Services.Client\3.5.0.0__b77a5c561934e089\System.Data.Services.Client.dll"
/out:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\rrtest\4deea330\df87be66\App_Code.n7okzgqj.dll"
/D:DEBUG /debug+ /optimize- /w:4 /nowarn:1659;1699;1701
"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\rrtest\4deea330\df87be66\App_Code.n7okzgqj.9.cs"
"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\rrtest\4deea330\df87be66\App_Code.n7okzgqj.13.cs"
"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\rrtest\4deea330\df87be66\App_Code.n7okzgqj.11.cs"
"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\rrtest\4deea330\df87be66\App_Code.n7okzgqj.18.cs"
"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\rrtest\4deea330\df87be66\App_Code.n7okzgqj.8.cs"
"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\rrtest\4deea330\df87be66\App_Code.n7okzgqj.17.cs"
"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\rrtest\4deea330\df87be66\App_Code.n7okzgqj.15.cs"
"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\rrtest\4deea330\df87be66\App_Code.n7okzgqj.21.cs"
"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\rrtest\4deea330\df87be66\App_Code.n7okzgqj.23.cs"
"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\rrtest\4deea330\df87be66\App_Code.n7okzgqj.3.cs"
"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\rrtest\4deea330\df87be66\App_Code.n7okzgqj.10.cs"
"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\rrtest\4deea330\df87be66\App_Code.n7okzgqj.6.cs"
"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\rrtest\4deea330\df87be66\App_Code.n7okzgqj.24.cs"
"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\rrtest\4deea330\df87be66\App_Code.n7okzgqj.14.cs"
"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\rrtest\4deea330\df87be66\App_Code.n7okzgqj.1.cs"
"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\rrtest\4deea330\df87be66\App_Code.n7okzgqj.22.cs"
"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\rrtest\4deea330\df87be66\App_Code.n7okzgqj.20.cs"
"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\rrtest\4deea330\df87be66\App_Code.n7okzgqj.5.cs"
"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\rrtest\4deea330\df87be66\App_Code.n7okzgqj.12.cs"
"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\rrtest\4deea330\df87be66\App_Code.n7okzgqj.16.cs"
"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\rrtest\4deea330\df87be66\App_Code.n7okzgqj.0.cs"
"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\rrtest\4deea330\df87be66\App_Code.n7okzgqj.2.cs"
"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\rrtest\4deea330\df87be66\App_Code.n7okzgqj.19.cs"
"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\rrtest\4deea330\df87be66\App_Code.n7okzgqj.7.cs"
"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\rrtest\4deea330\df87be66\App_Code.n7okzgqj.4.cs"*******************************************************************
-
Sunday, April 22, 2012 7:31 PM
Following are the environment variables on the server, I am not sure if required one is missing:
C:\Users\Administrator>set
ALLUSERSPROFILE=C:\ProgramData
APPDATA=C:\Users\Administrator\AppData\Roaming
CLIENTNAME=DELL1555
CommonProgramFiles=C:\Program Files\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
CommonProgramW6432=C:\Program Files\Common Files
COMPUTERNAME=PADEV1
ComSpec=C:\Windows\system32\cmd.exe
FP_NO_HOST_CHECK=NO
HOMEDRIVE=C:
HOMEPATH=\Users\Administrator
LOCALAPPDATA=C:\Users\Administrator\AppData\Local
LOGONSERVER=\\PADEV1
NUMBER_OF_PROCESSORS=4
OS=Windows_NT
Path=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v
1.0\;C:\Program Files (x86)\Dell\SysMgt\RAC4;C:\Program Files (x86)\Dell\SysMgt\oma\bin;C:\Program F
iles (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn
\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\10
0\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\Pri
vateAssemblies\;C:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE=AMD64
PROCESSOR_IDENTIFIER=Intel64 Family 15 Model 4 Stepping 3, GenuineIntel
PROCESSOR_LEVEL=15
PROCESSOR_REVISION=0403
ProgramData=C:\ProgramData
ProgramFiles=C:\Program Files
ProgramFiles(x86)=C:\Program Files (x86)
ProgramW6432=C:\Program Files
PROMPT=$P$G
PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
PUBLIC=C:\Users\Public
SESSIONNAME=RDP-Tcp#0
SystemDrive=C:
SystemRoot=C:\Windows
TEMP=C:\Users\ADMINI~1\AppData\Local\Temp\2
TMP=C:\Users\ADMINI~1\AppData\Local\Temp\2
USERDOMAIN=PADEV1
USERNAME=Administrator
USERPROFILE=C:\Users\Administrator
VS100COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools\
windir=C:\WindowsC:\Users\Administrator>
-
Sunday, April 22, 2012 9:41 PMMy concerns are on the long length of the following filenameC:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\rrtest\4deea330\df87be66\assembly\dl3\9d07a890\3bcb1ffd_70becc01\System.Web.Extensions.Design.DLLFilenames longer than 128 character are problematic.I checked on my compuer and I have nothing in the following folder, the folder exists but is empty. I don't have framework64.C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET FilesI do have on my computer the following fileC:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\System.Web.Extensions.Design.DLLI think there was a problem with the installation of the Net Library on you computer. You may have to uninstal the library and reinstall the library. Since the file moved from Net2.0 to Net4.0 I suspect the temporary file in V2.0 was created when the newer version of the file was deployed in V4.0. Your program should be referencing the V4.0 version but I'm not sure why it is still finding the file in V2.0
jdweng
-
Monday, April 23, 2012 3:44 AM
- Our application is developed on Framework 2.0, when we create the application under IIS we specifically choose the Application Pool for Framework 2.0 that is by it is referencing V2.0.
- Similar file lengths are running with charm on various other servers.
- You might not have 64 bit OS so you may not be see Framework64.
- Which Net Lib are you suggesting to reinstall?
-
Monday, April 23, 2012 6:41 AM
Hi Skb007,
Welcome to the MSDN forum.
The topic of this queue is .NET Framework Setup. Your problem is off topic here. Also, you can try a solution here: http://social.msdn.microsoft.com/Forums/en-US/vbgeneral/thread/185e6c73-61e5-47f2-9d14-21f8f3f0c7dd/
I hope this helps.
Best Regards,
Alexander Sun [MSFT]
MSDN Community Support | Feedback to us
-
Monday, April 23, 2012 9:55 AM
My concerns are with the Net 4.0 creating a new version of the System.Web.Extensions.Design.DLL. The path that is being used for the 2.0 version doesn't look healthy. From my past experience it is dangerous to mix different version of compilers and libraries together. With you machine having Net 4.0 installed going backwards and using only portions of the older Net 2.0 may not work. I wouldn't have any issues if the path of the dll looked valid.
I think Alexander may be wrong and your problem is a Net Setup issue.
Did you create the folder "rrtest"? If you did I would try moving the folder out of the c:\windows folder and put is someplace else. This would shorten the filename and may sove the problem.
jdweng
-
Monday, April 23, 2012 4:44 PM
Alexander: I still think that it is an issue of .Net Framework Setup/Installation.
I created the folder rrtest as c:/inetpub/wwwroot/rrtest.
I guess either IIS for .NET creates these temporary folders as "C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\rrtest\".
One seperate server things are working fine and I can see that there are lots of files under the following folder:
C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\rrlive\d918faa3\db7b401e
There any any tool which verifies the installation/permissions for .Net Framework and all the required components?
-
Tuesday, April 24, 2012 3:23 AM
Hi Skb007,
Please use .NET Framework Setup Verification tool to verify the .NET Frameworks (3.5 and 4.0) you have: http://blogs.msdn.com/b/astebner/archive/2008/10/13/8999004.aspx
Then post the last 10-15 lines here to help us know the results.
If you have any other problems, please feel free to let me know.
Best Regards,
Alexander Sun [MSFT]
MSDN Community Support | Feedback to us
-
Tuesday, April 24, 2012 12:51 PM
One thing I would like to mention that things work fine while debugging in VStudio. The error shows up when we browse the site using IIS.
@Joel Engineer: I was able to manage to change the location of the Temp directory from
"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\rrltest"
To
"C:\Temp\rrtest", still no difference.@Alexander:
Verification tools shows success. Following is a part of the log file:
===========================================================
[04/24/12,08:45:30] Beginning of new SetupVerifier activity logging session
[04/24/12,08:45:30] Activity log file location: C:\Users\ADMINI~1\AppData\Local\Temp\2\setupverifier_main_04-24-12_08.45.30.txt
[04/24/12,08:45:30] Error log file location: C:\Users\ADMINI~1\AppData\Local\Temp\2\setupverifier_errors_04-24-12_08.45.30.txt
[04/24/12,08:45:30] Build created on December 29, 2011
[04/24/12,08:45:30] Detected operating system: Windows 7 (x64)
[04/24/12,08:45:30] Install state for .NET Framework 1.0: not installed.
[04/24/12,08:45:30] Install state for .NET Framework 1.1: not installed.
[04/24/12,08:45:30] Install state for .NET Framework 2.0: installed with service pack 2.
[04/24/12,08:45:30] Install state for .NET Framework 3.0: installed with service pack 2.
[04/24/12,08:45:30] Install state for .NET Framework 3.5: installed with service pack 1.
[04/24/12,08:45:30] Install state for .NET Framework 4 Client: installed with no service packs.
[04/24/12,08:45:30] Install state for .NET Framework 4 Full: installed with no service packs.
[04/24/12,08:45:30] Not adding product '.NET Framework 1.0' because it is not currently installed
[04/24/12,08:45:30] Not adding product '.NET Framework 1.1' because it is not currently installed
[04/24/12,08:45:30] Not adding product '.NET Framework 1.1 SP1' because it is not currently installed
[04/24/12,08:45:30] Not adding product '.NET Framework 2.0' because it is not currently installed
[04/24/12,08:45:30] Not adding product '.NET Framework 2.0 SP1' because it is not currently installed
[04/24/12,08:45:30] Not adding product '.NET Framework 3.0' because it is not currently installed
[04/24/12,08:45:30] Not adding product '.NET Framework 3.0 SP1' because it is not currently installed
[04/24/12,08:45:30] Not adding product '.NET Framework 3.5' because it is not currently installed
[04/24/12,08:45:37] Starting verification for product .NET Framework 2.0 SP2
[04/24/12,08:45:37] Section [Files - .NET Framework 2.0 (Common)] - start parsing entries
[04/24/12,08:45:37] File C:\Windows\system32\mscoree.dll (version 4.0.40305.0) is installed on the system
[04/24/12,08:45:37] File C:\Windows\system32\dfshim.dll (version 4.0.40305.0) is installed on the system
[04/24/12,08:45:37] File C:\Windows\system32\mscorier.dll (version 2.0.50727.5420) is installed on the system
[04/24/12,08:45:37] File C:\Windows\system32\mscories.dll (version 2.0.50727.5420) is installed on the system
[04/24/12,08:45:37] File C:\Windows\system32\MUI\0409\mscorees.dll (version 4.0.40305.0) is installed on the system
[04/24/12,08:45:37] File C:\Windows\Assembly\GAC_32\CustomMarshalers\2.0.0.0__b03f5f7f11d50a3a\CustomMarshalers.dll (version 2.0.50727.5420) is installed on the system
[04/24/12,08:45:37] File C:\Windows\Assembly\GAC_32\ISymWrapper\2.0.0.0__b03f5f7f11d50a3a\ISymWrapper.dll (version 2.0.50727.5420) is installed on the system
[04/24/12,08:45:37] File C:\Windows\Assembly\GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\big5.nlp (no version info) is installed on the system
[04/24/12,08:45:37] File C:\Windows\Assembly\GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\bopomofo.nlp (no version info) is installed on the system
[04/24/12,08:45:37] File C:\Windows\Assembly\GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\ksc.nlp (no version info) is installed on the system
[04/24/12,08:45:37] File C:\Windows\Assembly\GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\mscorlib.dll (version 2.0.50727.5448) is installed on the system
[04/24/12,08:45:37] File C:\Windows\Assembly\GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\normidna.nlp (no version info) is installed on the system
[04/24/12,08:45:37] File C:\Windows\Assembly\GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\normnfc.nlp (no version info) is installed on the system
[04/24/12,08:45:37] File C:\Windows\Assembly\GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\normnfd.nlp (no version info) is installed on the system
[04/24/12,08:45:37] File C:\Windows\Assembly\GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\normnfkc.nlp (no version info) is installed on the system
[04/24/12,08:45:37] File C:\Windows\Assembly\GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\normnfkd.nlp (no version info) is installed on the system
[04/24/12,08:45:37] File C:\Windows\Assembly\GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\prc.nlp (no version info) is installed on the system
[04/24/12,08:45:37] File C:\Windows\Assembly\GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\prcp.nlp (no version info) is installed on the system
[04/24/12,08:45:37] File C:\Windows\Assembly\GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\sortkey.nlp (no version info) is installed on the system
[04/24/12,08:45:37] File C:\Windows\Assembly\GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\sorttbls.nlp (no version info) is installed on the system
[04/24/12,08:45:37] File C:\Windows\Assembly\GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\xjis.nlp (no version info) is installed on the system
[04/24/12,08:45:37] File C:\Windows\Assembly\GAC_32\System.Data.OracleClient\2.0.0.0__b77a5c561934e089\System.Data.OracleClient.dll (version 2.0.50727.5420) is installed on the system
[04/24/12,08:45:37] File C:\Windows\Assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll (version 2.0.50727.5420) is installed on the system
[04/24/12,08:45:37] File C:\Windows\Assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll (version 2.0.50727.5420) is installed on the system
[04/24/12,08:45:37] File C:\Windows\Assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.Wrapper.dll (version 2.0.50727.5420) is installed on the system
[04/24/12,08:45:37] File C:\Windows\Assembly\GAC_32\System.Transactions\2.0.0.0__b77a5c561934e089\System.Transactions.dll (version 2.0.50727.4927) is installed on the system
[04/24/12,08:45:37] File C:\Windows\Assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll (version 2.0.50727.5456) is installed on the system
[04/24/12,08:45:37] File C:\Windows\Assembly\GAC_MSIL\Accessibility\2.0.0.0__b03f5f7f11d50a3a\Accessibility.dll (version 2.0.50727.4927) is installed on the system
[04/24/12,08:45:37] File C:\Windows\Assembly\GAC_MSIL\cscompmgd\8.0.0.0__b03f5f7f11d50a3a\cscompmgd.dll (version 8.0.50727.4927) is installed on the system
[04/24/12,08:45:37] File C:\Windows\Assembly\GAC_MSIL\IEExecRemote\2.0.0.0__b03f5f7f11d50a3a\IEExecRemote.dll (version 2.0.50727.4927) is installed on the system
[04/24/12,08:45:37] File C:\Windows\Assembly\GAC_MSIL\IEHost\2.0.0.0__b03f5f7f11d50a3a\IEHost.dll (version 2.0.50727.4927) is installed on the system
[04/24/12,08:45:37] File C:\Windows\Assembly\GAC_MSIL\IIEHost\2.0.0.0__b03f5f7f11d50a3a\IIEHost.dll (version 2.0.50727.4927) is installed on the system
[04/24/12,08:45:37] File C:\Windows\Assembly\GAC_MSIL\Microsoft.Build.Engine\2.0.0.0__b03f5f7f11d50a3a\Microsoft.Build.Engine.dll (version 2.0.50727.5420) is installed on the system
[04/24/12,08:45:37] File C:\Windows\Assembly\GAC_MSIL\Microsoft.Build.Framework\2.0.0.0__b03f5f7f11d50a3a\Microsoft.Build.Framework.dll (version 2.0.50727.5420) is installed on the system
[04/24/12,08:45:37] File C:\Windows\Assembly\GAC_MSIL\Microsoft.Build.Tasks\2.0.0.0__b03f5f7f11d50a3a\Microsoft.Build.Tasks.dll (version 2.0.50727.5420) is installed on the system
[04/24/12,08:45:37] File C:\Windows\Assembly\GAC_MSIL\Microsoft.Build.Utilities\2.0.0.0__b03f5f7f11d50a3a\Microsoft.Build.Utilities.dll (version 2.0.50727.5420) is installed on the system
[04/24/12,08:45:37] File C:\Windows\Assembly\GAC_MSIL\Microsoft.JScript\8.0.0.0__b03f5f7f11d50a3a\Microsoft.JScript.dll (version 8.0.50727.4927) is installed on the system
[04/24/12,08:45:37] File C:\Windows\Assembly\GAC_MSIL\Microsoft.VisualBasic.Compatibility.Data\8.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualBasic.Compatibility.Data.dll (version 8.0.50727.4927) is installed on the system=====================================================================
-
Tuesday, April 24, 2012 12:58 PM
Can yo upost the error again and the stack trace? I wan't to see if any thing has changed. Sometime we fix one thing and still get the same error message because of aq second problem.
Since you changed the location of the temp directory I wan't to see if the error below is still occuring. It may be that you fix the temp folder and the problem is now occuring because a different filename has a long path.
Cannot execute a program. The command being executed was "C:\Windows\Microsoft.NET\Framework64\v2.0.50727\csc.exe" /noconfig /fullpaths @"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\rrtest\4deea330\df87be66\gpb5umpy.cmdline".
jdweng
-
Tuesday, April 24, 2012 3:01 PM
Here it is...
FYI... I also changed the permission on C:\Temp so that everyone has access to read/write/execute.
Server Error in '/RRTest' Application.
Cannot execute a program. The command being executed was
Description:
"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\csc.exe" /noconfig /fullpaths
@"C:\Temp\rrtest\4deea330\df87be66\_-igivvd.cmdline".
An unhandled exception occurred during the execution of the current web
request. Please review the stack trace for more information about the error and
where it originated in the code.
Exception Details:
System.Runtime.InteropServices.ExternalException: Cannot execute a program.
The command being executed was
"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\csc.exe" /noconfig /fullpaths
@"C:\Temp\rrtest\4deea330\df87be66\_-igivvd.cmdline".
Source
Error:An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.
Stack Trace:[ExternalException (0x5): Cannot execute a program. The command being executed was "C:\Windows\Microsoft.NET\Framework64\v2.0.50727\csc.exe" /noconfig /fullpaths @"C:\Temp\rrtest\4deea330\df87be66\_-igivvd.cmdline".] System.CodeDom.Compiler.Executor.ExecWaitWithCaptureUnimpersonated(SafeUserTokenHandle userToken, String cmd, String currentDir, TempFileCollection tempFiles, String& outputName, String& errorName, String trueCmdLine) +2595 System.CodeDom.Compiler.Executor.ExecWaitWithCapture(SafeUserTokenHandle userToken, String cmd, String currentDir, TempFileCollection tempFiles, String& outputName, String& errorName, String trueCmdLine) +6942609 Microsoft.CSharp.CSharpCodeGenerator.Compile(CompilerParameters options, String compilerDirectory, String compilerExe, String arguments, String& outputFile, Int32& nativeReturnValue, String trueArgs) +326 Microsoft.CSharp.CSharpCodeGenerator.FromFileBatch(CompilerParameters options, String[] fileNames) +886 Microsoft.CSharp.CSharpCodeGenerator.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromFileBatch(CompilerParameters options, String[] fileNames) +229 System.CodeDom.Compiler.CodeDomProvider.CompileAssemblyFromFile(CompilerParameters options, String[] fileNames) +42 System.Web.Compilation.AssemblyBuilder.Compile() +10887767 System.Web.Compilation.BuildProvidersCompiler.PerformBuild() +247 System.Web.Compilation.CodeDirectoryCompiler.GetCodeDirectoryAssembly(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories, Boolean isDirectoryAllowed) +11231115 System.Web.Compilation.BuildManager.CompileCodeDirectory(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories) +185 System.Web.Compilation.BuildManager.CompileCodeDirectories() +654 System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +658 [HttpException (0x80004005): Cannot execute a program. The command being executed was "C:\Windows\Microsoft.NET\Framework64\v2.0.50727\csc.exe" /noconfig /fullpaths @"C:\Temp\rrtest\4deea330\df87be66\_-igivvd.cmdline".] System.Web.Compilation.BuildManager.ReportTopLevelCompilationException() +76 System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +1012 System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters) +1025 [HttpException (0x80004005): Cannot execute a program. The command being executed was "C:\Windows\Microsoft.NET\Framework64\v2.0.50727\csc.exe" /noconfig /fullpaths @"C:\Temp\rrtest\4deea330\df87be66\_-igivvd.cmdline".] System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +11335894 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +88 System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +11209384
Version Information: Microsoft .NET Framework Version:2.0.50727.5448;
ASP.NET Version:2.0.50727.5456Following is the content of "C:\Temp\rrtest\4deea330\df87be66\_-igivvd.cmdline":
/t:library /utf8output /R:"C:\Windows\assembly\GAC_MSIL\System.Data.Services.Design\3.5.0.0__b77a5c561934e089\System.Data.Services.Design.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.ServiceModel\3.0.0.0__b77a5c561934e089\System.ServiceModel.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Web.Mobile\2.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Data.Entity\3.5.0.0__b77a5c561934e089\System.Data.Entity.dll" /R:"C:\Windows\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\mscorlib.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Design\2.0.0.0__b03f5f7f11d50a3a\System.Design.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\Windows\assembly\GAC_64\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Core\3.5.0.0__b77a5c561934e089\System.Core.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.WorkflowServices\3.5.0.0__31bf3856ad364e35\System.WorkflowServices.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"C:\Temp\rrtest\4deea330\df87be66\assembly\dl3\1dc15467\3bcb1ffd_70becc01\System.Web.Extensions.Design.DLL" /R:"C:\Temp\rrtest\4deea330\df87be66\assembly\dl3\697a5d29\6c5979fa_70becc01\System.Web.Extensions.DLL" /R:"C:\Windows\assembly\GAC_MSIL\System.IdentityModel\3.0.0.0__b77a5c561934e089\System.IdentityModel.dll" /R:"C:\Windows\assembly\GAC_64\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Windows.Forms\2.0.0.0__b77a5c561934e089\System.Windows.Forms.dll" /R:"C:\Temp\rrtest\4deea330\df87be66\assembly\dl3\d0594cdf\4e3e7e4d_71becc01\AjaxControlToolkit.DLL" /R:"C:\Windows\assembly\GAC_64\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Runtime.Serialization\3.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Data.Services.Client\3.5.0.0__b77a5c561934e089\System.Data.Services.Client.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.ServiceModel.Web\3.5.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Data.Linq\3.5.0.0__b77a5c561934e089\System.Data.Linq.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Web.Abstractions\3.5.0.0__31bf3856ad364e35\System.Web.Abstractions.dll" /out:"C:\Temp\rrtest\4deea330\df87be66\App_Code.ujbus1r7.dll" /D:DEBUG /debug+ /optimize- /w:4 /nowarn:1659;1699;1701 "C:\Temp\rrtest\4deea330\df87be66\App_Code.ujbus1r7.8.cs" "C:\Temp\rrtest\4deea330\df87be66\App_Code.ujbus1r7.10.cs" "C:\Temp\rrtest\4deea330\df87be66\App_Code.ujbus1r7.6.cs" "C:\Temp\rrtest\4deea330\df87be66\App_Code.ujbus1r7.20.cs" "C:\Temp\rrtest\4deea330\df87be66\App_Code.ujbus1r7.4.cs" "C:\Temp\rrtest\4deea330\df87be66\App_Code.ujbus1r7.9.cs" "C:\Temp\rrtest\4deea330\df87be66\App_Code.ujbus1r7.2.cs" "C:\Temp\rrtest\4deea330\df87be66\App_Code.ujbus1r7.18.cs" "C:\Temp\rrtest\4deea330\df87be66\App_Code.ujbus1r7.0.cs" "C:\Temp\rrtest\4deea330\df87be66\App_Code.ujbus1r7.11.cs" "C:\Temp\rrtest\4deea330\df87be66\App_Code.ujbus1r7.12.cs" "C:\Temp\rrtest\4deea330\df87be66\App_Code.ujbus1r7.23.cs" "C:\Temp\rrtest\4deea330\df87be66\App_Code.ujbus1r7.17.cs" "C:\Temp\rrtest\4deea330\df87be66\App_Code.ujbus1r7.24.cs" "C:\Temp\rrtest\4deea330\df87be66\App_Code.ujbus1r7.15.cs" "C:\Temp\rrtest\4deea330\df87be66\App_Code.ujbus1r7.16.cs" "C:\Temp\rrtest\4deea330\df87be66\App_Code.ujbus1r7.7.cs" "C:\Temp\rrtest\4deea330\df87be66\App_Code.ujbus1r7.22.cs" "C:\Temp\rrtest\4deea330\df87be66\App_Code.ujbus1r7.13.cs" "C:\Temp\rrtest\4deea330\df87be66\App_Code.ujbus1r7.3.cs" "C:\Temp\rrtest\4deea330\df87be66\App_Code.ujbus1r7.5.cs" "C:\Temp\rrtest\4deea330\df87be66\App_Code.ujbus1r7.14.cs" "C:\Temp\rrtest\4deea330\df87be66\App_Code.ujbus1r7.21.cs" "C:\Temp\rrtest\4deea330\df87be66\App_Code.ujbus1r7.1.cs" "C:\Temp\rrtest\4deea330\df87be66\App_Code.ujbus1r7.19.cs"
- Edited by skb007 Tuesday, April 24, 2012 3:07 PM
-
Tuesday, April 24, 2012 3:47 PM
It looks like the error is different from before. Am I correct? The should be an output list file that was generated with the line number where the error occured. Not sure of the name of the file. Check the build folder for the latest files. I don't remember if it is an html, text, or log file.
I'm not sure why you are getting an HTTPexception. Are you building across a network or using a Remote Desktop Applicaiton?
The C# command lines are on this webpage
http://msdn.microsoft.com/en-us/library/6ds95cz0(v=vs.90).aspx
You command lines are as follows
C:\Windows\Microsoft.NET\Framework64\v2.0.50727\csc.exe" /noconfig /fullpaths
@"C:\Temp\rrtest\4deea330\df87be66\_-igivvd.cmdline".
Check to see if csc.exe is in the folder specified. I have a different csc.exe for each verion of net (1.1, 2.0, 3.5).
I think -igivvd.cmdline is the text file that is being used to do the compiling. You should check this file and make sure the filenames and paths arre correct.
jdweng
-
Tuesday, April 24, 2012 4:37 PM
- No it is not different, the only difference is that it is nicely formatted this time.
- We have rebuild the application with no errors. As I mentioned previously that application runs fine from with in the Visual Studio.
- I verified that csc.exe is in the folder (C:\Windows\Microsoft.NET\Framework64\v2.0.50727) and it has the similar permission as of working server.
- I have verified the path mentioned in the C:\Temp\rrtest\4deea330\df87be66\_-igivvd.cmdline file, I have already posted the contents.
- Same error occurs while accessing the application from IIS. Same error for all the applications.

