By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,971 Members | 907 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,971 IT Pros & Developers. It's quick & easy.

Compiler executable csc.exe cannot be found

P: 8
Hello everyone...
I am new to this community so m sorry if this is not the place for this post...

I uploaded my site (built in 3.5 framework) to the server which does not have 3.5 but 2.0.

I uploaded the System.Core.dll file in the bin folder of the wwwroot/ folder. but doesn't help either...

Now when i access my home page, I get this erro saying 'Compiler executable file csc.exe cannot be found.'


Stack trace:

[InvalidOperationException: Compiler executable file csc.exe cannot be found.]
System.CodeDom.Compiler.RedistVersionInfo.GetCompi lerPath(IDictionary`2 provOptions, String compilerExecutable) +2191394
Microsoft.CSharp.CSharpCodeGenerator.FromFileBatch (CompilerParameters options, String[] fileNames) +562
Microsoft.CSharp.CSharpCodeGenerator.System.CodeDo m.Compiler.ICodeCompiler.CompileAssemblyFromFileBa tch(CompilerParameters options, String[] fileNames) +185
System.CodeDom.Compiler.CodeDomProvider.CompileAss emblyFromFile(CompilerParameters options, String[] fileNames) +23
System.Web.Compilation.AssemblyBuilder.Compile() +843
System.Web.Compilation.BuildProvidersCompiler.Perf ormBuild() +164
System.Web.Compilation.BuildManager.CompileWebFile (VirtualPath virtualPath) +267
System.Web.Compilation.BuildManager.GetVPathBuildR esultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +582
System.Web.Compilation.BuildManager.GetVPathBuildR esultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +93
System.Web.Compilation.BuildManager.GetVirtualPath ObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +111
System.Web.Compilation.BuildManager.CreateInstance FromVirtualPath(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.IHttpH andlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +40
System.Web.HttpApplication.MapHttpHandler(HttpCont ext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +139
System.Web.MapHandlerExecutionStep.System.Web.Http Application.IExecutionStep.Execute() +128
System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean& completedSynchronously) +161



Please help me know what is wrong with it...?
and how may i correct thsi..

thanx...
Mar 23 '09 #1
Share this Question
Share on Google+
2 Replies


Frinavale
Expert Mod 5K+
P: 9,731
You cannot just upload core Framework Libraries like this and expect the web server to use them.

The web server you are hosting your web application on must support the 3.5 Framework since your application has been developed for the 3.5 framework. It will not work otherwise.

If your application does not use any features provided in the 3.5 Framework, consider changing your web application to target the 2.0 Framework instead.

-Frinny
Mar 23 '09 #2

100+
P: 293
@meskeleton

Do you have .Net framework SDK installed on your machine where you are testing/designed your application ..?

Thanks,
Mukta
Mar 24 '09 #3

Post your reply

Sign in to post your reply or Sign up for a free account.