Parser Error Message Compiler Executable File Csc.exe Cannot Be Found
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Compiler executable file csc.exe cannot be found in .NET 4.5 Azure deployment up vote 6 down vote favorite 1 I have a site which was and works: ASP.NET 4 MVC 3 Entity Framework 4.3 Running in an Azure web role (i noticed it was osFamily="1" which is weird as I expected it to be 2 - but anyway...) Azure SDK 1.7 I have upgraded my entire codebase to be up to date with the plethora of new toys. So now it is: ASP.NET 4.5 MVC 4 (Razor 2) Entity Framework 5 Azure config set to osFamily="3" Azure SDK 1.8 (with Storage Client Library painstakingly upgraded to 2 not 1.7) When I access the site in staging I get a yellow screen of death saying Compiler executable file csc.exe cannot be found. My question is Why? It works fine locally, in Release mode too. I remoted in and the instances are definitely running Windows Server 2012 (therefore .NET 4.5?? I've seen it's hard to tell since .NET 4.5 replaces .NET 4 assemblies in the .NET 4 folders). According to the response headers it is definitely running IIS 8 but interesting it claims X-ASPNET-VERSION is 4.xxxx. Is this normal for a ASP.NET 4 site? UPDATE: I targeted the .NET 4 framework and changed the osFamily to 2 and it now works. So I now suspect that I have a 3rd party assembly that uses .NET 3.5 or 2 (infact I'm certain I do) but surely when targeting a .NET framework higher than ones referenced in imported assemblies the higher version of the framework is used?? osFamily="3" only has .NET 4 and 4.5 in
post as spam? This post will be reported to the moderators as potential spam to be looked at Yes No Andrew Blackmore 84 posts 127 karma points Jun 14, 2010 @ 16:03 0 Site worked fine on dev, and won't work on live Installing umbraco HI all, I've very much liked working with http://stackoverflow.com/questions/13343315/compiler-executable-file-csc-exe-cannot-be-found-in-net-4-5-azure-deployment umbraco and finally got the site looking how I needed it to on the dev server. I went to change it over on to the live server and I get this error. Server Error in '/' Application. Configuration Error Description: An error occurred during the processing https://our.umbraco.org/forum/getting-started/installing-umbraco/9825-Site-worked-fine-on-dev-and-won't-work-on-live of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: Could not load file or assembly 'System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified. Source Error: Line 97:
> .NET Framework Setup and Servicing Question 0 Sign in to vote Hi everyone, I have spent the last week trying to figure out what is wrong with my .Net installation and I can't for the life of me figure it https://social.msdn.microsoft.com/Forums/vstudio/en-US/5ac3a570-23e7-4c67-9fc6-d09b9f026d7e/compiler-executable-file-cscexe-cannot-be-found?forum=netfxsetup out.I had installed C# 2008 Express and the .Net 3.5 framework (I can't remember if I installed 3.0 or not. I'm running vista and so I think I left the stock as is). Everything has worked fine, I've been http://www.tomasvera.com/programming/compiling-a-c-project-using-command-line-tools-tutorial/ using Linq and some of the other C# 3.0 features such as the var feature.Now, when i create new classes in C# in the using portion of the file, it is "using System.Linq". I receive a compiler error stating parser error it can't find the assembly. I have imported System.Data.Linq and System.Xml.Linq and that did not fix it. I have searched for a System.Linq and I cannot find it. So that was not that big of a deal, I just left it alone.Well now I have implemented a scripting engine with my application, and I am wanting to use the var keyword in place of all the value types, so that 3rd party users don't need to worry about the parser error message different value type keywords the scripting language supports. Currently it compiles the scripts using CodeDom and C# 2.0 (I assume it's using 2.0 as the var keyword causes a compiler error stating it's missing a referance to an assembly), and so I specify to the compiler that I want to use 3.5, but when I execute the compiler during runtime I receive a runtime error stating that the compiler executable csc.exe cannot be found. If I remove my forcing it to 3.5 (shown below) it compiles fine but again with no support for the var keyword. I Checked the .net 3.5 install directory and the csc.exe is in fact installed there, so I don't know what is wrong with my C#. I can't use Linq, and now I can't use the 3.5 compiler with CodeDom, two things that I would really need to get added to my script engine. If anyone could offer some help I would appreciate it. var providerOptions = new Dictionary
Hierarchical (Nested) XML from a DataSetGoDaddy, MySQL, iTextSharp and Shared Hosting WoesA Programmer’s Cheat-Sheet for GoDaddy.comCompiling iTextSharpGetting Request Variables in PHPContact MeAboutBuy me a Beer Compiling a C# Project using Command Line Tools (Example) Tomas Vera's Thoughts > Programming > Compiling a C# Project using Command Line Tools (Example) (Updated 12/4/2015) Compiling a C# (C-Sharp) file using command line tools is not as difficult as you may think. In this tutorial, I will walk you through the steps needed to create a project using nothing more than Notepad and the Command Prompt. Jump to the code A lot of programmers are not aware that the .NET compilers used by Visual Studio are installed as part of the .NET Framework itself. This allows you to use the C# and Visual Basic compilers outside of Visual Studio. Help me maintain this site. Please turn off your ad-blockers and re-load this page. Thanks!