I got this error when i tried to install visual studio build tools 2019 in windows 10 using latest visual studio installer.
An installation file didn't download
After nine attempts, there was a problem downloading the following file: https://download.visualstudio.microsoft.com/download/pr/5eeaf3c7-015f-442c-8d63-aea17e5e6aef/6ec381fa716a2ed419c2141cc09606ee/a1e2a83aa8a71c48c742eeaff6e71928.cab
Select Continue to install Visual Studio without downloading this file. This might cause problems with other parts of the installation.
Select Retry to try downloading the file again.
Select Cancel to cancel the Visual Studio install.
Get help installing behind a firewall or proxy server.
Continue
Retry
Cancel
I tried uninstalling and reinstalling, tried restating the pc, tried the retry button on the error. Nothing works.. when i copy the link and paste it in a browser, a file downloads.
help me solve this issue
https://www.youtube.com/watch?v=ZKUCejkRc0s
this video helped me
Run your Services.msc as administrator
Locate the "CNG Key Isolation" service and open it
Change the "Startup type" option to "Manual" and start it
Download the Visual Studio and try again(in my case just clicked on retry)
Related
I tried to reinstall my Visual studio 2019 today and after I uninstall it I could not install it again.
Visual studio installer is starting, showing dialog to chose components and when I select what I need I click Install button and... Installer window disappears and there are 2 instances of installer in Task Manager one of which is loading CPU from 12 to 17 per cent and another one just sitting there never showing any signs of life. No errors or any signs of malfunctioning shown by Installer or could be found in a logs. Event Viewer also contains nothing.
Things I tried:
Deleting files from AppData\Local\Microsoft\VisualStudio
Rebooting
Redownloading Installer
Waited on running instance of Installer for quite some time, but without much of the success
Nothing works. I am out of ideas what possibly could be wrong. Never faced such a problem before. Any help would be greatly appreciated
1) delete any folders likeC:\Users\perryq\AppData\Local\Microsoft\VisualStudio\16.0_xxxx
and C:\Program Files (x86)\Microsoft Visual Studio\2019\xxx
Then,
run vs_installer as Administrator and try again.
Besides, if it still does not work, I suggest you could try to do a clean uninstallation of VS on your PC.
a) run C:\Program Files (x86)\Microsoft Visual Studio\Installer\resources\app\layout\InstallCleanup.exe, and it will uninstall all VS2017 and VS2019's version, caches, the registration information on your PC. If your PC does not have any other version or if you do not mind it, you can just execute it.
And when you finish it, you can run the latest vs_installer as Administrator to reinstall it again to test it.
I'm seeing this error in a pop-up window when attempting to run/debug my web project from Visual Studio
The following error occurred when trying to configure IIS Express. Opening and creating websites on iis requires running visual studio under an administrator account
This happened completely out of the blue. One second I was working as normal, regularly going in and out of debug in my browser, then this error pops up. It happens when attempting to run any web project, and it doesn't matter if it's in debug, release mode or what.
Stuff I've tried:
Run Visual Studio as Administrator
Uninstall/Reinstall IIS Express (via "Turn Windows Features On or Off" in Control Panel)
Update Visual Studio
Delete project's .vs folder
But still the error persists.
Is there anything else I can reinstall, update or otherwise check?
Thanks.
Solved it by going through a day of hell, and to be honest the 'solution' was very brute force...
TL;DR: Fully deleting and reinstalling Visual Studio seemed to do the trick.
Since the usual methods weren't working, I tried a full reinstall of Visual Studio. That didn't help. I then tried a System Restore. That made everything far worse, with my project showing about 500 error messages!
I then undid the System Restore, completely deleted all traces of Visual Studio from my computer, reinstalled everything, then tried VS2019 preview edition, tried 2017 edition again, uninstalled and reinstalled NetCore 2.0, 2.1, 2.2... all just to get around the minefield of error messages I'd created for myself.
In the end I just needed to do a full NuGet clear and restore then run dotnet restore --force in the NPM console, after which all those error messages were gone. As well as this, the original IIS Administrator error was gone too, presumably fixed via the original reinstall of Visual Studio.
Lost a whole day to this quagmire.
Downloading & Installing IIS Express from Microsoft worked for me. No need to update VS or remove/re-add the project.
I'm trying to install the latest version of Visual Studio Community 2017, however I'm having a few issues. I downloaded the Visual Studio installer and run it. After trying to go through it, it just shows and empty dialog box with the only option being to close. There's no error or anything, but if I'm not wrong, it should open the window showing which parts of Visual Studio I want to install. Screenshots showing the process:
Anyone have any experience with this? Or am I doing something wrong?
Please follow the steps as below to completely remove the VS 2017:
Go to Control Panel—Programs and Features, right click the ‘Microsoft Visual Studio 2017’ and choose ‘Uninstall’
Try to delete the following installed folders: %ProgramData%\Microsoft\VisualStudio\Packages and %ProgramFiles(x86)%\Microsoft Visual Studio\2017\Community
After that, make sure windows update is up-to-date, clean up the %temp% folder, temporarily disable any antivirus, download the latest installer from Visual Studio Downloads and run it as administrator to install.
If this issue persists, please use http://aka.ms/vscollect to gather the installation logs and find vslogs.zip under the %temp% folder, then upload the file to Onedrive and share the link here.
This is a known issue, we have fix this in the next major Visual Studio update release. (15.4)
The WMI service on your machine was not working (due to pending OS update). The Bootstrapper depends on WMI service and since WMI service is not working correctly, ManagementException is thrown. In 15.4, we have removed the Bootstrapper's dependency on WMI.
If you see this error again, you can try the followings to workaround this issue.
Workaround:
1. Download latest Bootstrapper from https://www.visualstudio.com/downloads/ and run vs_enterprise.exe --passive --update in an admin command console window. (this will force update your VS Installer)
OR
Reboot your machine and follow this instruction to repair WMI:
https://social.technet.microsoft.com/Forums/windows/en-us/8ed26d46-9994-4052-a307-5b071805aea8/wmi-corrupt-how-to-reinstallrepair?forum=winservergen
OR
Make sure your OS is up to date.
thanks for reporting this issue.
toby.
I first tried to install VS 2017 RC and a problem occurred during installation. I tried to repair the installation but while it was repairing - my computer blue screened (probably unrelated to installation I was running a lot of programs). Now, whenever I try to install VS 2017 - it instantly gives me this error log and says 'Setup operation failed'. What do I do to fix this?
Error log:
[29cc:0004][2016-12-22T07:39:53] Error 0x80004003:
at Microsoft.VisualStudio.Setup.Cache.InstanceRepository.GetInstance()
at Microsoft.VisualStudio.Setup.Cache.CacheRepository.d__27.MoveNext()
at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable1 source, Func2 predicate)
at Microsoft.VisualStudio.Setup.Engine.VerifyInstallationPath(IServiceProvider services, String installationPath, IInstance instance, IQuery query)
at Microsoft.VisualStudio.Setup.Engine.Install(Product product, String destination, CancellationToken token)Object reference not set to an instance of an object.
I tried posting on VS developer community but it is instantly marked as duplicated and linked to other duplicates which link to other duplicates which have no solution.
Refer to the error message, you can try to remove the existing VS 2017 RC that install failed before as below:
Go to Control Panel—Programs and Features, if there has ‘Microsoft Visual Studio 2017’, right click it and choose ‘Uninstall’
Try to delete the following installed folders: (you can back up those folders before any modification, in case we need to roll back)
• Go to the folder: %ProgramData%\Microsoft\VisualStudio and delete the ‘Packages’ folder and ‘Setup’ folder if there has.
• Go to the Visual Studio installation folder (normally under %ProgramFiles(x86)%\Microsoft Visual Studio) and delete the folder ‘2017’
After that, make sure windows update is up-to-date, clean up the %temp% folder and temporarily disable any antivirus software, reboot the computer and re-run the VS 2017 RC installer as administrator again.
A common problem is that when you go to the downloads page it automatically downloads the x64 version of VS. So, create a Dev account (free) then go to downloads from the dev homepage and select the version you want to download and check x86. Hope this helps!
When I run Visual Studio 2012 Professional I get a side by side configuration error message.
Message:
"C:\Program Files\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe
The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the commande-line sxstrace.exe tool for more detail."
Event log:
"Activation context generation failed for "C:\Program Files\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe". Dependent Assembly coloader80.dll,processorArchitecture="X86",type="win32",version="1.0.0.0" could not be found. Please use sxstrace.exe for detailed diagnosis."
sxstrace.exe: http://pastebin.com/qgS3Sx8c
I've already installed vcredist_x86
I'm running Windows 7 Professional
I had the same issue in that several files were not copied over to the VS2012 directories and it caused the 'side by side' issues. In my case I was installing from a drive that was on the network. After installing / uninstalling / reinstalling over and over without success I finally moved the install media to my local hard drive. Then, I was able to uninstall and then reinstall successfully. I believe the problem is that when the install has to reboot and continue installing it can't find the install media 'in time' so then it fails. If you are installing from a 'remote drive' I would suggest moving the install media to a local drive and then trying again.
I encountered this problem today and found a crude way to solve it for me, without analyzing logs and looking for missing .dlls.
I opened up the system configuration and was about to de-intall VS2013 RC, when I realized there was an repair option. Trying this brought no effect, but I also saw that VS2012 for windows desktop and vs2012 for web were still installed.
So after a reboot this finally fixed my side-by-side error:
Cleanse the machine of any previously installed Visual Studio versions.
Reboot.
Repair the installed (and only left) version of Visual Studio
Reboot.
Maybe this is of use for everyone else who is encountering this problem in the future.
Kind regards