I am trying to open Visual Studio, but it is giving an error:
cannot run when set up is in progress
It was running fine before when I restarted my machine. I have already installed this version from past one year.
I am trying to open Visual Studio, but it is giving an error:
cannot run when set up is in progress
It was running fine before when I restarted my machine. I have already installed this version from past one year.
Try to check Task Manager and kill any process related to Visual Studio (any version).
Update:
as many people mentioned in the comments it is better to wait a while until those processes end themselves
I had this problem with Visual Studio 2017. There were processes in Task Manager named VSIXAutoUpdate.exe
. I watched Task Manager and they were spawning and despawning. A few times, a Visual Studio 2017 process would spawn and despawn.
After VSIX Auto Updater stopped showing up in Task Manager, it had applied all of it's background updates and I was able to launch Visual Studio.
I wouldn't recommend killing these processes in the middle of them installing updates, like other answers to this question suggest. Just wait until they finish by watching Task Manager.
This happened to me when I attempted to fire up Visual Studio just after start up.
I couldn't see any Visual Studio or installer processes running in Task Manager, but I waited 5 minutes or so, tried again, and it opened.
Root Cause: If, We shutdown the system with out closing the visual studio properly and next time we will open the system then some times we will get this issue due to setup will run at background.
Fix: No need to do any thing just wait for 10 to 15 minutes and open the visual studio again. It will automatically fix the issue.
I encountered this error today after a cold boot (on a VM) and found a solution.
To prevent this from happening the next time you reboot (at least until there is an update that re-introduces the bug) you can:
Found using: VS Community 2019, Version 16.1.3
Solution: Do not just open up Task Manager and Kill all processes that VSXAutoUpdate.exe is updating, this will give you problems when you try to start Visual Studio as updates were not complete. Instead, Wait until the update completes that is when you start the Visual Studio. If you no longer need the Visual Studio Component that is updating more regularly, again it is advised to uninstall the component via Visual Studio Installer
I get this error message when an update has been pushed to Visual Studio, but failed for some reason.
To fix this, follow the steps below (Windows)
Settings > Apps > Visual Studio Installer > Click 'Modify'
You should see an error message saying something like "Updates could not be applied" and you can click the button to retry.
In my latest instance, it was a small update to the .NET Desktop Development Workload that hadn't downloaded or installed correctly.
Most likely Visual Studio is being updated as the error message insinuates and if you wait a few minutes for the update to finish you should be able to run Visual Studio again without problems.
If the problem persists or if you're just curious, open up your task manager and see if there is anything related to (Microsoft) Visual Studio running but don't just kill the process. Check instead if the process is using any resources - if it has a high I/O count, then it's actually updating and you should let it do its thing. If CPU-usage and memory usage remain mostly constant and there is no disk activity for the process for several minutes, this could mean that the process is stuck. You might have to kill it, but proceed with caution. Hopefully if this is an update for Visual Studio, the process name should include a version number or some sort of indication of what kind of update is being applied that you can use to search for more information through a search engine or through Microsoft's online resources.
If none of the aforementioned solutions help (which was the case for me), I've got another suggestion. Go to the control panel, and under "Programs and Features", click "Uninstall a Program".
You'll get this big window with all of your installed applications in it. If you tried to install an SDK or something and the program stopped working after that, find all the Visual Studio-related programs with an installation date that is the same as the date you began encountering the issue. Right click them, and if a 'Repair' option is available, click that. If not, click 'Uninstall', and then, in the window that opens after that, click 'Repair'.
So essentially, you're repairing everything Visual Studio-related that was installed on the same day you began seeing issues. It worked for me after installing an Azure SDK and seeing this error.
enter image description here Open the Task manager, there is a service named VSStandardCollectorService150 service, right-click to start it. This is worked for me for the same issue on VS2019.
I had the same problem. My problem was VSIXAutoUpdate. I had waited until the end of the processing. You can see VSIXAutoUpdate in Task Manager (Ctrl + Alt + Del). VSIAutoupdate could be a malware sometimes so you must check details inside the properties in Task Manager (right click on VSIXAutoUpdate). You can see the web page below:
What I found on Task Manager was that a VS Preview 2019 version was updating while I was trying to start my production version of VS2017. Never had the problem before. I waited, as many others suggest, about 3 minutes and the problem subsided with not consequential repercussions. Felt a LOT better that way rather than nuking a task through Task Manager. :-)
I was facing the same issue when opening Microsoft Visual Studio Enterprise 2019 Version 16.4.2
inside my VM.
Here is the solution and this is what I did and it worked for me:
Don't kill any process related to Visual Studio in Task Manager as it may end in unexpected behavior and even make you to reinstall Visual Studio sometimes. So Simply wait for 5 to 10 minutes. All the process related to Visual Studio will end automatically.
Now open your visual studio it will work normally.
Instead of killing VSIXAutoUpdate.exe, you should be able to prevent it from starting as it seems to be run by the task scheduler. Go to the Microsoft/VisualStudio folder in the scheduler and you will see one or more tasks called VSIX Auto Update (I guess there's one for each VS version installed). Right click and disable... You'll probably lose the ability for VS extensions to get automatically updated, though - hopefully nothing more than that.
Only way I found to 'EASE' the suffering is to open win 10 task manager and right click VSIXAutoUpate.exe, in context menu select go to details, right click the VSIXAutoUpate.exe again and in context menu select set priority and select realtime...... as I said this is to Ease the suffering not to end it
I started Windows Installer service from the windows task manager then the Visual Studio 2019 opened (solution suggested here and worked for me)