none
Compiler executable file csc.exe cannot be found. RRS feed

  • Question

  • We have a .net 2.0 compiled DLL which uses c# scripting(targeting .net 2.0) when compiling the script we get the error “Compiler executable file csc.exe cannot be found.”

    The application pool runs .net 4.0  and all is running on a 2008  R2 x64 machine.

    On a development/test 2008 R2 x64 machine all works fine, but on the live server we can not get this to work, so it must be something with the configuration/installation of the live server. But we can not find any obvious difference between both configurations.

     

     

    Thursday, July 28, 2011 8:58 AM

Answers

  • We just found the solution.

    Adding the feature .net framework 3.5.1 in the server manager will solve our problem. It does not looks like making any sense since we only use .net 4.0 and .net 2.0.

     

    • Marked as answer by RonaldF2000 Thursday, August 4, 2011 12:02 PM
    Thursday, August 4, 2011 12:02 PM

All replies

  • csc.exe is the C# compiler. It comes with the .net framework and you can find it at drive:\WINDOWS\Microsoft.NET\Framework\[VERSION]\

    Can you check if csc.exe is available in the installed versions of .net (it should be there for every version)?


    Dimitri C. - Please mark the replies as answers if they help! Thanks.
    Thursday, July 28, 2011 11:43 AM
  • yes CSC.exe is available a windows.exe using the same dll works correctly.

     

    Friday, July 29, 2011 12:54 PM
  • Hi RonaldF2000,

     

    Thank you for your post.

     

    Was your problem been solved?

     

    Could you please let me know what version the server you mentioned is?

     

    I also recommend you use .NET Framework Setup Verification Tool to verify the .NET Frameworks you have installed on your server.

     

    You said your application is based on .NET Framework 4.0. Have you installed .NET Framework 4.0 on your server?

     

    If you have any other concerns, please feel free to let me know.

     

    Best Regards,


    Alexander Sun [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Monday, August 1, 2011 10:01 AM
  • We just found the solution.

    Adding the feature .net framework 3.5.1 in the server manager will solve our problem. It does not looks like making any sense since we only use .net 4.0 and .net 2.0.

     

    • Marked as answer by RonaldF2000 Thursday, August 4, 2011 12:02 PM
    Thursday, August 4, 2011 12:02 PM