.net - System.InvalidOperationException: Compiler executable file csc.exe cannot be found -


i have application in .net 4.0 framework.

this application running fine on server .net framework 4.0 installed on (also previous versions (3.5 sp1, 3.0, 2.0) installed on machine). reason have move application server has .net framework 4.5.2 installed on it. after moving application new server when access it, having error message:

compiler executable file csc.exe cannot found.

exception details: system.invalidoperationexception: compiler executable file csc.exe cannot found.

i not able determine what's causing problem. please suggest.

here complete stack trace:

[invalidoperationexception: compiler executable file csc.exe cannot found.]    system.codedom.compiler.redistversioninfo.getcompilerpath(idictionary`2 provoptions, string compilerexecutable) +8338603    microsoft.csharp.csharpcodegenerator.fromfilebatch(compilerparameters options, string[] filenames) +739    microsoft.csharp.csharpcodegenerator.system.codedom.compiler.icodecompiler.compileassemblyfromfilebatch(compilerparameters options, string[] filenames) +170    system.web.compilation.assemblybuilder.compile() +12114384    system.web.compilation.buildproviderscompiler.performbuild() +301    system.web.compilation.applicationbuildprovider.getglobalasaxbuildresult(boolean isprecompiledapp) +12653841    system.web.compilation.buildmanager.compileglobalasax() +50    system.web.compilation.buildmanager.ensuretoplevelfilescompiled() +665  [httpexception (0x80004005): compiler executable file csc.exe cannot found.]    system.web.compilation.buildmanager.reporttoplevelcompilationexception() +80    system.web.compilation.buildmanager.ensuretoplevelfilescompiled() +1142    system.web.hosting.hostingenvironment.initialize(applicationmanager appmanager, iapplicationhost apphost, iconfigmappathfactory configmappathfactory, hostingenvironmentparameters hostingparameters, policylevel policylevel, exception appdomaincreationexception) +1193  [httpexception (0x80004005): compiler executable file csc.exe cannot found.]    system.web.httpruntime.firstrequestinit(httpcontext context) +12656404    system.web.httpruntime.ensurefirstrequestinit(httpcontext context) +159    system.web.httpruntime.processrequestnotificationprivate(iis7workerrequest wr, httpcontext context) +12496021 

i faced same issue in windows app, reinstalled dot net framework, , works me.


Popular posts from this blog