Visual Studio Major Issues - visual-studio

A few days ago now I tried to install the C++ packages for my VS2015 installation, but it wouldn't install them so I uninstalled the entirety of VS2015 and then reinstalled, but since then I've been getting tons of errors when I start the software, they are like this:
The 'Visual Studio Component Enumerator Package' package did not load correctly. The problem may have been caused by a configuration change or by the installation of another extension. You can get more information by examining the file: 'C:Users\\AppData\Roaming\Microsoft\VisualStudio\14.0\ActivityLog.xml'.
I've attached this log at the bottom of this post.
I get around 10 of these Package errors before I can finally load into the software, but then when I try to either open an existing C# project it says "Unavailable" or if I try to start a new C++ project it says
'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\VCWizards\default.vcxproj' cannot be opened because its project type (.vcxproj) is not supported by this version of the application. To open it, please use a version that support this type
I have tried the following to fix these issues, and every possible combination of these:
Uninstalling and reinstalling
Deleting my %appdata% in both Local and Roaming for VS 14.0
Deleting Program Files (x86)\Visual Studio 14.0
Repairing the installation
Uninstalling, cleaning registry, deleting everything I can find RE: Visual Studio and then reinstalling
devenv /setup, devenv /clearcache, devenv /uninstall /force and then reinstalling, every command line I've found anywhere.
I've been dealing with this issue for a few days and it has completely halted my development process and I'm unable to do anything with VS and it's gotten to the point where I'm extremely frustrated and not sure what to do next.
As far as I can tell there are a lot of packages missing from my installation, but Repairing my installation does not fix this. Is there a way to restore the packages?
Any assistance would be much appreciated, or is there a better forum to post this under?
Activity Log:
http://pastebin.com/pwTJQc4B

Related

Is there any way of fixing this Visual studio 2015 Nuget Pacage Manager mess?

It seems I managed to completely break my Visual Studio 2015 setup by uninstalling Nuget Package Manager. I uninstalled it in order to fix its inability to update anything. Now, when I try to launch VS I get a plethora of error messages, but the most important one seems to be shown on the image below as its showing no matter what fix I attempt:
Here are the steps I took before I started seeing the above error:
I have renamed the Extensions folder found at the following path:
C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE and installed Nuget Package Manager for Visual Studio 2015 from the microsoft website.
New extensions folder was created and when I tried to run the application with nothing else in it I would get the error message above once on VS launch and once on project load. When I moved old package folders from the old extensions folder I would get a lot more error messages related to the packages.
I also noticed there is an Extensions folder found at %localappdata%\Microsoft\VisualStudio\14.0, but renaming the folder to something else and just having blank folder did not help either. Also, I saw somewhere else a possible fix to an issue I thought was similar by removing contents of the folder located at: %localappdata%\Microsoft\VisualStudio\14.0\ComponentModelCache, but that didn't help either. Now with all this trying I am getting to a point where fresh install might be an only option.
UPDATE:
I guess I managed to overcome this issue by opening up this project in Visual Studio 2017. It worked without any issues, though when I originally cloned the repository from GitHub via Visual Studio 2017 it didn't work. Having said all that, I don't think its an answer I was looking for, but at least I can continue working on this project.

"Unable to locate package source vsupdate_KB2829760" Visual Studio 2013 Ultimate Update 5

I have installed Visual Studio 2013 Ultimate. Then tried to update Nuget Package Manager, which redirected me to download VS2013.5.exe from microsoft. But when I try to install the update I get the error:
None of the options worked. I even tried to locate the folder vsupdate_kb2829760 from the DVD, and could not find it. Some of the answers pointed out that WebDeploy is needed because of some SSL or Certificate issue. I downloaded and installed WebDeploy_amd64_en-US.msi but that did nothing to resolve the issue, even after I have restarted.
Some of the answers I found mention Visual Studio 2012 Update 4, which does not seem to be applicable to the update I am trying to run.
How do I resolve this issue?
PS: I also tried un-installing VS2013 Ultimate and installed VS2013 Professional, but got the same issue.
For anyone else experiencing this problem I found this link that contains all the Visual Studio 2013 downloads. I was able to download the full Update 5 disc image and install it that way.
I was experiencing the same error but with a different missing file. The issue was that I wasn't mounting the installer's iso properly, see this thread.
copy the "packages" folder from your install (mounted ISO or whatever) into the directory you are running the VS2013.4 (or version)

Manually download missing package for visual studio

When installing visual studio if we already have deleted content of C:\ProgramData\Package Cache directory then whole setup process will be turned into a real nightmare constantly complaining about missing packages. I've searched the web for a solution and the only working one I've found is a tool called install and uninstall troubleshooter.but the problem with it is i have to interrupt setup process and use this tool to remove the package and then get back to setup again which is really cumbersome job to do.
But the good thing is for every package that visual studio fails to uninstall it logs a GUID like this {A2999714-5C2C-3729-A911-4AE198B7B2FD} in the log file.Now better and ideal solution in my mind is looking after an official website from which i be able to download each of these packages by these GUIDEs.Is there such a location in the web? or is there any better solution to solve the issue?
Why did you delete the Package Cache? Do you have little disk space? The Visual Studio installer is so complex that you are fighting windmills trying to fix this I think. Perhaps they have an uninstall tool of some kind that will clean the slate.
Is this Visual Studio 2017? If so, maybe try these links:
Remove Visual Studio
Cleaning up corrupt Visual Studio instances
I doubt it will work since you have deleted the package cache. Note that most MSI-based installers should be able to uninstall without the package cache due to the cached MSI file in the super hidden folder %SystemRoot%\Installer.
Whatever you do do not delete anything from %SystemRoot%\Installer. Then you are in a totally unrecoverable state since this is an internal Windows Installer implementation detail. Do not mess around in here unless you know exactly what you are doing.
The files in %SystemRoot%\Installer are used to uninstall from the Add / Remove Programs Applet.
Further Links:
Visual Studio 2017 Broken and Cannot Uninstall or Repair
have deleted content of C:\ProgramData\Package Cache directory then whole setup process will be turned into a real nightmare constantly complaining about missing packages
Had the same issue, but with vcredist files, couldn't install any drivers without running into errors and eventually couldn't install because install failed.
I found the solution elsewhere. It said to
Fix problems that block programs from being installed or removed
https://support.microsoft.com/en-us/help/17588/windows-fix-problems-that-block-programs-being-installed-or-removed
download troubleshooter button on the link.
Run it - choose option - have problem with installing - it lists programs - choose the missing / problematic visual c++ runtimes in the list
it will run and get fixed.
Repeat for each visual c++ you having problems with. I ran the program multiple times.

Remove NuGet Package manager from VS2013

I had an install issue with the NuGet package manager extension. I am now trying to remove it, but each time I do the remove, I come back to VS2013 PRO and it is still there (win7 sp1 box).
Is there a different way to remove it (I am getting errors whenever I try to open a project).
I ended up calling Microsoft support, and we spent about 45 minutes searching the registry for the particular version of NuGet (there was an old version installed that was not properly removed, keeping the new one from being installed).
We had to search by version id.
VS2013 does not only put things in:
C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions (with a random character folder name)
But also in %appdata%\Microsoft Visual Studio 12.0\Common7\IDE\Extensions as well as other places. So we had a lot of searching to do, but once we found it and removed the folder and all the old Nuget references from the registry, it was possible to continue and install the new NUGET Package Manager.
Today I found things were corrupt, (probably registry) but a REPAIR (From the install) was able to fix the problems

Missing Project/Item Templates

I have Visual Studio 2010 and recently both at home and at work have had an issue with missing projects in the Installed Templates. All that projects and the folder called 'Data' is missing So now SQLDatabase, DataSet, AdoNet Entity Data Model, LinqToSQL, XMLFile, etc...
Fixes tried so far:
uninstall some recent framework addon or related products and it comes back.
The most common fix is to do 'devenv /installvstemplates' command which has not worked for me.
check for zip file in
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ProjectTemplates\CSharp\Data\1033 folder and is contains all the appropriate zip files. Also the same for ItemTemplates folder.
Reinstall - Tried this 3 times no luck even went as far as to remove all reg keys and every folder that had anything to do with VS2010.
All complete reset of all VS2010 settings and other related commands.
I'm at a lose at what to do next. Beside a complete OS re-install which seems a little drastic. Anyone have a better solution please?
Run devenv.exe /installvstemplates with elevated privileges
Make sure the .NET version at top of template list matches your solution's .NET version
I had the same problem, but with the C#code item templates, and I fixed it with the following:
Tools/Options/Environment/International Settings/Language:
"Same as Windows" instead of "English"
and then restart VS2010.
I've just run into this issue and resolved it by doing the following:
I got the following folder and its contents from a colleague's PC \Common7\IDE\ProjectTemplates\CSharp.
Then I copied it to the appropriate location on my PC (C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\ProjectTemplates\CSharp)
I ran the command given in the answers above devenv.exe /installvstemplates using the Visual Studio Command Prompt tool with Administrator priviledges.

Resources