Hi All,
RE: Cannot execute a program - "C:\WINDOWS\Microsoft.NET\Framework
\v3.5\csc.exe"
Just installed VS2008 on an XP Pro SP3 machine with VS2005. I fire it
up and create a new
ASP.NET Web App targeted at .NET 3.5. Add some
text to the default page and fire it up in Debug mode. It launches the
browser and throws the "Cannot execute a program" exception for
"csc.exe".
I have since tried to the following:
- Created a new
ASP.NET Web App using the .NET 2.0 profile (worked
fine)
- Created a new
ASP.NET Web App using the .NET 3.0 profile (worked
fine)
- Created a new
ASP.NET Web App using the .NET 3.5 profile (failed
with Exception)
- Repaired VS2008 (no effect)
- Reinstalled VS2008 (no effect)
- Repaired .NET 3.5 Framework install (no effect)
Anyone have any suggestions... this is really annoying me now.
Al
===============================================================
Server Error in '/' Application.
Cannot execute a program. The command being executed was "C:\WINDOWS
\Microsoft.NET\Framework\v3.5\csc.exe" /noconfig /fullpaths @"C:
\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary
ASP.NET Files
\root\796ed787\fd4217d7\m8500evh.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
\Framework\v3.5\csc.exe" /noconfig /fullpaths @"C:\WINDOWS
\Microsoft.NET\Framework\v2.0.50727\Temporary
ASP.NET Files\root
\796ed787\fd4217d7\m8500evh.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 (0x36b1): Cannot execute a program. The command
being executed was "C:\WINDOWS\Microsoft.NET\Framework\v3.5\csc.exe" /
noconfig /fullpaths @"C:\WINDOWS\Microsoft.NET\Framework
\v2.0.50727\Temporary
ASP.NET Files\root
\796ed787\fd4217d7\m8500evh.cmdline".]
System.CodeDom.Compiler.Executor.ExecWaitWithCaptureUnimpersonated(SafeUserTokenHandle
userToken, String cmd, String currentDir, TempFileCollection
tempFiles, String& outputName, String& errorName, String trueCmdLine)
+2165
System.CodeDom.Compiler.Executor.ExecWaitWithCapture(SafeUserTokenHandle
userToken, String cmd, String currentDir, TempFileCollection
tempFiles, String& outputName, String& errorName, String trueCmdLine)
+111
Microsoft.CSharp.CSharpCodeGenerator.Compile(CompilerParameters
options, String compilerDirectory, String compilerExe, String
arguments, String& outputFile, Int32& nativeReturnValue, String
trueArgs) +451
Microsoft.CSharp.CSharpCodeGenerator.FromFileBatch(CompilerParameters
options, String[] fileNames) +593
Microsoft.CSharp.CSharpCodeGenerator.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromFileBatch(CompilerParameters
options, String[] fileNames) +185
System.CodeDom.Compiler.CodeDomProvider.CompileAssemblyFromFile(CompilerParameters
options, String[] fileNames) +23
System.Web.Compilation.AssemblyBuilder.Compile() +843
System.Web.Compilation.BuildProvidersCompiler.PerformBuild() +164
System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath
virtualPath) +267
System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath
virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean
allowBuildInPrecompile) +582
System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext
context, VirtualPath virtualPath, Boolean noBuild, Boolean
allowCrossApp, Boolean allowBuildInPrecompile) +93
System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath
virtualPath, HttpContext context, Boolean allowCrossApp, Boolean
noAssert) +111
System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath
virtualPath, Type requiredBaseType, HttpContext context, Boolean
allowCrossApp, Boolean noAssert) +54
System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context,
String requestType, VirtualPath virtualPath, String physicalPath) +31
System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext
context, String requestType, VirtualPath virtualPath, String
physicalPath) +40
System.Web.HttpApplication.MapHttpHandler(HttpContext context, String
requestType, VirtualPath path, String pathTranslated, Boolean
useAppConfig) +139
System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
+128
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously) +161
===============================================================