Advertisement

04.12.2008 at 01:02PM PDT, ID: 23317692
[x]
Attachment Details

Upgrade to v3.5: Compiler executable file csc.exe cannot be found.

Asked by kalliopi in .NET Framework 3.x versions, Microsoft Visual C#.Net, Language Integrated Query - LINQ

Tags: 3.5 .net csharp web iis upgrade err

I have a 3.0 site that I just upgraded to 3.5.  It runs fine on my dev box (with VS 2008) - but on the server (no VS 2008) - I get the error

Compiler executable file csc.exe cannot be found.

When the site goes to load.  Any suggestions?

EJStart Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
Server Error in '/' Application.
--------------------------------------------------------------------------------
 
Compiler executable file csc.exe cannot be found. 
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.InvalidOperationException: Compiler executable file csc.exe cannot be found.
 
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: 
 
 
[InvalidOperationException: Compiler executable file csc.exe cannot be found.]
   System.CodeDom.Compiler.RedistVersionInfo.GetCompilerPath(IDictionary`2 provOptions, String compilerExecutable) +2191394
   Microsoft.CSharp.CSharpCodeGenerator.FromFileBatch(CompilerParameters options, String[] fileNames) +562
   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() +891
   System.Web.Compilation.BuildProvidersCompiler.PerformBuild() +213
   System.Web.Compilation.ApplicationBuildProvider.GetGlobalAsaxBuildResult(Boolean isPrecompiledApp) +269
   System.Web.Compilation.BuildManager.CompileGlobalAsax() +47
   System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +510
 
[HttpException (0x80004005): Compiler executable file csc.exe cannot be found.]
   System.Web.Compilation.BuildManager.ReportTopLevelCompilationException() +58
   System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +610
   System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters) +803
 
[HttpException (0x80004005): Compiler executable file csc.exe cannot be found.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +940
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +70
   System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +275
[+][-]04.12.2008 at 02:20PM PDT, ID: 21342520

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: .NET Framework 3.x versions, Microsoft Visual C#.Net, Language Integrated Query - LINQ
Tags: 3.5 .net csharp web iis upgrade err
Sign Up Now!
Solution Provided By: gardavis
Participating Experts: 1
Solution Grade: A
 
 
[+][-]04.12.2008 at 03:24PM PDT, ID: 21342731

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_EXPERT_20070906