none
Problemas com o C# Compiler do Visual Studio 2008 RRS feed

  • Pergunta

  • Bom dia. Hoje estava desenvolvendo um relatório no Crystal Reports, e quando fui criar uma CrystalReportViewer numa página aspx no modo Design, o Visual Studio simplesmente travou. Nem mesmo o botão de fechar do programa se destacava ao passar o mouse por cima, quanto mais era informado pelo Gerenciador de Tarefas que o programa não respondia. Esperei por alguns minutos para ver se surtia algum resultado, mas nada. Então resolvi matar o processo devenv.exe direto, só assim ele fechou. Nas próximas tentativas, mesmo que o CrystalReportViewer não estivesse adicionado, o modo Design travava. Então resolvi adicionar pelo Source e Debugar para ver se funcionaria, e então o programa acusou o erro de que o C# Compiler (csc.exe) estaria faltando. Porém, depois de procurar, ele estava normalmente na pasta do .NET Framework 3.5. O erro que procede é esse.


    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() +843
       System.Web.Compilation.BuildProvidersCompiler.PerformBuild() +164
       System.Web.Compilation.CodeDirectoryCompiler.GetCodeDirectoryAssembly(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories, Boolean isDirectoryAllowed) +387
       System.Web.Compilation.BuildManager.CompileCodeDirectory(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories) +125
       System.Web.Compilation.BuildManager.CompileCodeDirectories() +525
       System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +448
    
    [HttpException (0x80004005): Compiler executable file csc.exe cannot be found.]
       System.Web.Compilation.BuildManager.ReportTopLevelCompilationException() +57
       System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +612
       System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters) +644
    
    [HttpException (0x80004005): Compiler executable file csc.exe cannot be found.]
       System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +3465427
       System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +69
       System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +279
    

     

    Grato pela Atenção.

    sexta-feira, 26 de março de 2010 15:14

Respostas

Todas as Respostas