215
votes

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.

screenshot

30
It migth be that Visual Studio is being upgraded by Windows Update (patch microsoft.com/en-us/download/…) as a critical patch was released a few days ago... Not sure if it get's forced through Windows Update though... It might also be the installation of support.microsoft.com/kb/3002339 - jessehouwing
@jessehouwing Could be that Microsoft is simply attempting to force everyone to upgrade to Update 4, but however I have Update 3 on Visual Studio 2013 Ultimate (yes, it's genuine and legally obtained via Microsoft's Dreamspark programme) and can confirm that it's not showing this message for me. - AStopher
Check your Windows Update history to see if it's trying (and failing) to install a Visual Studio patch. Generally starting any Visual studio (update|patch) installer will prevent any instance of visual studio to start. - jessehouwing
On 2018-03-19, this happened to me with Visual Studio 2017 Enterprise (15.6.2). Task Manager revealed a VSIXAutoUpdate.exe was running. I probably have some Extensions with the "automatically update" checkbox set, which probably explains why I could not start VS 2017. Once that extension auto updater finished, I was then able to start Visual Studio 2017 Enterprise (15.6.2). - user3785010
It's a typical crappy VS error. It looks like a catastrophic failure but it's just waiting until some updates are installed. Once they have finished it loads. It would be helpful if the message advised this. - Norbert Norbertson

30 Answers

162
votes

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

127
votes

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.

53
votes

Not exactly an answer to the original question, but if you really need to run VS during setup, you can use the undocumented /AllowDuringSetup command line switch (at your own risk).

42
votes

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.

27
votes

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.

24
votes

I encountered this error today after a cold boot (on a VM) and found a solution.

  • Windows > Services
  • Look for a service with a name like 'Visual Studio Standard Collector Service'
  • Right click on the item and start the service => Visual Studio should now be able to launch

To prevent this from happening the next time you reboot (at least until there is an update that re-introduces the bug) you can:

  • Right click on the item and select Properties
  • Set the Startup type to 'Automatic'
  • Select Apply

Found using: VS Community 2019, Version 16.1.3

9
votes

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

8
votes

Try restarting your computer. That worked for me.

6
votes

Go to task manager and end the VS Auto Update task. It will work fine.

5
votes

It happended to me, I restarted the system but made no difference. Went to Task Manager and there was a task VSIXAutoUpdate.exe running. I could have just killed it, but I waited for like 10 minutes and tried again opening the Visual Studio and it worked. Now you know what to do!

4
votes

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.

4
votes

Open Task manager and stop the Visual Studio Process.

Clear out %temp% folder, and re-started VS2019.

This worked for me.

4
votes

A pending Windows update was the cause. After the Windows update Visual Studio starts without any problems.

3
votes

Go to Task Manager. Under processes look for vns. Click End Process.

3
votes

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.

3
votes

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.

3
votes
  • Give some time and try again.
  • End all the tasks related to visual studio in task manager.
  • If both of these solutions doesn't work then restart the machine it'll definitely work.
3
votes

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.

2
votes

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:

https://www.file.net/process/vsixautoupdate.exe.html

2
votes

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. :-)

2
votes

I cleared out my %temp% folder, and re-started VS2017. started working fine.

2
votes

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.

2
votes

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.

1
votes

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

1
votes

I experienced the same issue today(VS 2015 update 3). Noticed that the service "VSStandardCollectorService140" was stopped. (I had a blue screen error when i logged of yesterday. May be something related to that) . Restarted this service and it's working

1
votes

You can also just launch Visual Studio Installer. The installer seems to fix whatever is the background issue. You can then just launch your Visual Studio from the installer.

I just now resolved my issue this way.

1
votes

I started Windows Installer service from the windows task manager then the Visual Studio 2019 opened (solution suggested here and worked for me)

1
votes

Clearing the %temp% folder worked for me for the same issue on VS2019.

1
votes

Just restart the system,Its worked for me.

1
votes

Process hacker

It is Extension auto-update processing is running. You can either kill them or wait until they finished (recommended)