I have error in my project on time of build csc.exe exited with code -2146232797 visual studio 2017(Professional) in other Team's computer project building and running fine, so I not want to update nuget compiler,
Is there any permanent solutions there?
This issue happened for some people with vs 2017. you need to reinstall .net via
microsoft site
as requested and if the above link does not help, there is a thread in visual studio development community stating they fixed the issue in visual studio 2017 v15.5:
We have fixed this issue and it's available in Visual Studio 2017
version 15.5. Thank you for helping us build a better Visual Studio!
more over, there is another solution stating:
using the 2.2 compiler made the problem go away.
Multiple times I got this issue in VS 2019. I closed other VS projects and then build successfully.
Related
I've got a problem with my Visual Studio for Mac 2022 version 17.0.4 (build 23) when running my application and trying to debug my project. It seems that when I try to debug the project, it gives me an error screenshot below.
with it I can't seem to run my project in Debug mode because of this. Does anyone able to fix this issue? Please let me know sooner.
It seems the issue is the IDE itself, I tried installing the 2019 version of Visual Studio for Mac and it seems work perfectly! I think the main reason why in Visual Studio for Mac 2022 has this problem is because doesn't support the .NET Core 3.1 because it is about to be deprecated. I think this is why it doesn't work as expected. Anywho, it is been solved! Hopefully anyone who across the same issue knows this. Thanks!
I'm working with an old C# LightSwitch HTML project that connects to SharePoint and I need to make a few changes. Unfortunately not enough to justify migrating to another technology/platform, but anyways...
I fire up my Visual Studio 2015 and the project won't build. I've of course googled for and tried everything I can think of and long story short even if I create a new C# LightSwitch HTML project and try to build it, it fails. Here's the error I get:
An exception occurred when building the database for the application.
An error occurred during deployment plan generation. Deployment cannot continue.
Error SQL0: Required contributor with id 'Microsoft.LightSwitch.DataRetentionDeploymentPlanModifier.v5.0' could not be loaded.
Error SQL0: Required contributor with id 'Microsoft.LightSwitch.LocalDbLocationModifier.v5.0' could not be loaded. GraphicsApp C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\LightSwitch\v5.0\Microsoft.LightSwitch.targets 160
If I go to line 160 (double-clicking on the error) I see this (Starting at line 160):
<BuildSchema Inputs="#(ServerMetadataFiles)"
ServerGeneratedMetadataFiles="#(ServerGeneratedMetadataFiles)"
Collation="$(DatabaseCollation)"
DatabaseProject="#(_DatabaseProject)"
ProjectPath="$(MSBuildProjectFullPath)"
OutputDirectory="Bin\Data"
SqlExpressInstanceName="$(SqlExpressInstanceName)"
ExternalDataSources="#(ServerExternalDataSources)"
Condition="'$(SkipBuildSchema)' == ''"/>
I've tried searching everything I can think of but I'm not finding anything that even sounds remotely the same except this link. But it's talking about V4 and only says that the solution was to:
"right clicking on the project in solution explorer... [and] upgrade
the project"
But that doesn't help me at all because I don't see any option to upgrade anything and again I have the same exact problem on the brand new project I create.
Do you know what version of SQL Server Data Tools (SSDT) you have installed?
The latest update 14.0.61707.300 breaks LightSwitch with that error.
You could try uninstalling SSDT and installing the previous version.
Had same issue...
SQL Server Data Tools for Visual Studio 2015 (SSDT)
SSDT version 17.4 (14.0.61712.050) https://go.microsoft.com/fwlink/?linkid=863440
breaks our SSRS,
as does SSDT version 17.3 (14.0.61709.290)
https://go.microsoft.com/fwlink/?linkid=858660
Breaks our LightSwich.
https://learn.microsoft.com/en-us/sql/ssdt/previous-releases-of-sql-server-data-tools-ssdt-and-ssdt-bi?view=sql-server-2017
By Trail and Error, found SSDT for VS2015 17.2 Works For both LightSwitch and SSRS
https://go.microsoft.com/fwlink/?linkid=852922
For a Windows 10 machine, with previously installed Visual Studio 2017, the installation of Visual Studio 2015 and running the Lightswitch project, nothing worked, but this:
copy all the content from this location "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\SQLDB\DAC\130\Extensions"
to
"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\SQLDB\DAC\140\Extensions"
Found that solution on MSDN.
I just faced a similar situation here, but I could not find a version 13.x of SSDT and upgrading to the oldest version available in the Microsoft website didn't help.
The error was fixed when I decided to do some VS pending updates, on of them being the Office Developer Tools for VS, which was updated to
Try by installing microsoft office developer tools for visual studio 2015
https://www.microsoft.com/en-us/download/details.aspx?id=51683
I've Visual Studio 2017 community edition. I have a C# project created using Visual Studio 2015. When I try to open the project in VS 2017 I get an error message prompt:
--------------------- Microsoft Visual Studio
Project 'dataStructureInCSharp' could not be opened because the Visual C# 2017 compiler could not be created.
Please re-install Visual Studio.
--------------------------- OK
I'm trying to obtain help if anyone else has faced similar issue. I feel going the uninstall and then reinstall route is very costly for me and would try that option last if I've got no other resort.
What I've done so far :
Tried starting visual studio with administrative privileges
But problem remained same.
I tried creating a new console project solution from scratch but in that case I get very same error and an additional error error also shown below:
System Environment: Windows 7 Ultimate Service Pack 1
You can try to close all VS 2017 instances and delete the folder %localappdata%\Microsoft\VisualStudio\15.0_xxxx\ComponentModelCache, then open VS to create a new Console project.
Or
please re-run the VS 2017 installer as administrator, click the icon beside ‘Launch’ button and choose ‘Repair’ to repair as shown below:
Just to brief the history of my problem, I had first installed Visual Studio(VS) 2017 community when it was in RC stage. This was first time when I saw the workload based UI of visual studio installation. Initially I simply chose .Net desktop development workload to get started as I was interested in creating only console applications to get my hands dirty.
Initially it was all working well. One fine day I added all other workloads I was interested in namely Universal Windows Platform Development, Azure Development, ASP.NET and web development,Node.js development, and Mobile development with .Net. I'm not sure if there any of the specific workloads to be blamed for the issue I've posted.
Just to avoid the case if RC and RTM release builds might not have messed up my entire environment, I simply uninstalled the entire stuff, rebooted my machine and installed it again from scratch from latest RTM release for Visual Studio Community.
I would strongly recommend that you first try possible solutions suggested by #Sara-MSFT before doing clean reinstall just in case if it works. It can save you couple of hours required in whole reinstallation process if it works.
I recently upgraded my visual studio from 2012 to 2015 every thing was working perfectly fine on VS 2012 but i am getting
"An unhandled exception of type 'System.StackOverflowException' occurred in WebGrease.dll" when i run my application/code
below is details about version
package id="WebGrease" version="1.1.0" targetFramework="net40"
Update: the fix i found
There seems to be compatibility issue of webgrease(1.1.0) with vs2015 updrading it to WebGrease 1.6.0 solved the problem
I recently ran into this, but for a very specific use case. I am using Syncfusion products in a project for a client.
My dev machine has(had) Visual Studio 2013 Ultimate and Visual Studio 2015 Enterprise installed, side by side. My WebGrease package was fully updated to 1.6.0.
When I updated to the latest version of Syncfusion, I started receiving the WebGrease StackOverflowException shown above, but only when I was in VS 2015. 2013 did not give me the same error.
I also did not get the error unless I added a specific Syncfusion JS file to my bundles. Everything ran as expected until I added that one bundle.
I even went through the trouble of removing the built-in bundling support of the project, by removing Antlr, WebGrease, System.Web.Optimization, etc. Doing that fixed my error, but it was not the solution I was looking for.
After some back & forth with Syncfusion support, they stated that they were able run the project on their machines that were using Visual Studio 2015. They stated that the problem must be on my machine.
I keep a very clean dev machine, only installing software that I absolutely need and nothing else. I was certain that the problem wasn't on my end and was in denial about the whole thing.
I tried to repair Visual Studio 2015 as well as uninstall/reinstall Visual Studio 2015. Neither worked.
Yesterday, I bit the bullet and wiped my machine and reinstalled everything. Now the project runs without error.
It's not the fix anyone wants to hear, but it is what ultimately solved my problem.
Cliff's Notes: I had the same problem. The fix ended up being wiping my machine and starting from scratch.
Am doing a back end project in C# in Visual Studio. My team mate had done it using Visual Studio 2012 express and everything seems to work there. But when i used git to clone it to my system where am using Visual Studio 2013 express, one part of the project says its incompatible with the current version of VS. I could clean and build the project, but was unable to run the project. I searched and found that one solution is to go to Programs and features, select VS, right click,select repair. But even after doing this, the problem persists. Is there any work around?
When I was learning ASP.NET MVC by Informit tutorials I was in the very similar situation. I downloaded the sample sources that was created in VS2013 but had VS2015 installed. It was some kind of bug \ magic, but VS didn't recognized some libraries in VS2015 even they were installed. What is more strange is the fact that when I decided to totally rewrite the project line by line it worked!
Of course, I tried to clean, rebuild, reinstall NuGet packages.
So, if you have an access to sources *.cs, then just try to create new project and copy-paste code.