469,352 Members | 2,140 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,352 developers. It's quick & easy.

Compiler executable csc.exe cannot be found

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
2 10394
Frinavale
9,735 Expert Mod 8TB
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
madankarmukta
308 256MB
@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.

Similar topics

11 posts views Thread by Chris Mantoulidis | last post: by
9 posts views Thread by Brian Tyler | last post: by
9 posts views Thread by Azeem M. Suleman | last post: by
19 posts views Thread by David W | last post: by
30 posts views Thread by lovecreatesbea... | last post: by
3 posts views Thread by Rene | last post: by
41 posts views Thread by Miroslaw Makowiecki | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.