249

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

9
  • 4
    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 Dec 21, 2014 at 22:29
  • @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
    Dec 21, 2014 at 22:37
  • 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. Dec 21, 2014 at 22:39
  • 9
    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). Mar 19, 2018 at 12:41
  • 2
    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. Oct 12, 2018 at 8:06

42 Answers 42

182

Try to check Task Manager and kill any process related to Visual Studio (any version).

Update:
as many people mentioned in the comments it could be better to wait a while until those processes end themselves

9
  • 70
    Surely this will allow you to start VS immediately. But aborting an update process may lead to failures. Better wait 3 minutes (until VSIXAutoUpdate.exe closes itself) and try again. Apr 18, 2018 at 6:16
  • 6
    Now it says "The setup for the visual studio installation is not complete. Please run the visual studio installer again" lol Jul 19, 2018 at 14:08
  • 7
    This is shouldn't be an answer and shouldn't be up-voted!
    – Rickless
    Dec 19, 2018 at 19:31
  • 1
    Go to Windows Update and Check for Updates. VSIXAutoUpdate closed by itself and I could open Visual Studio. Apr 29, 2020 at 7:36
  • 1
    I have a situation where VSIXAutoUpdate.exe will be hung for a couple of hours and not finish. It just sits in the task manager consuming 0 CPU and a little bit of memory. Killing the process or restarting my computer both results in a corrupted visual studio installation forcing me to have to do a repair. From now on I will be disabling automatic updates of visual studio extensions cause this is absurd and it's the second time I have had to do this in the past month.
    – GnUfTw
    Nov 6, 2020 at 17:28
140

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.

6
  • 5
    Yes waiting is a good option, after 2-3 minutes it's starting properly. But I did not get this popup until last week. SInce then, it occurs every day (?) on only 1 of my 2 machines with VS (?) both have an updated W10, so..
    – Goodies
    Feb 12, 2018 at 8:15
  • 2
    Had a situation where the VSIX Auto Updater would start and just sit there doing noting. Ending it fixed the problem. I assume it was stuck trying to complete a failing install. Apr 13, 2018 at 8:03
  • Yes, I just waited a bit until no processes showed any more.. Like 3 minutes (brewed up) and it started fine.
    – Piotr Kula
    Nov 12, 2018 at 8:57
  • 2
    I am using VS2019, and the background process is VSIXConfigurationUpdater.exe, just wait about 3 minutes. The process will exit automatically.
    – Chuck Lu
    Jan 14, 2021 at 1:36
  • 1
    I have this problem in VS2019 and after 30 mins the process has not ended.
    – Rye bread
    Apr 6, 2021 at 7:46
61

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

43

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.

4
  • This is exactly what happened to me too. I killed any process I thought could be related and nothing. After reading this I tried launching it again and it just worked.
    – Zakk Diaz
    Oct 18, 2017 at 17:35
  • Genuinely just happened to me as described. Hadn't launched VS and there was nothing in Task Manager Visual Studio-ey. Just tried launching it again. Bingo. shrug Dec 11, 2017 at 8:31
  • I restarted my system, waited for more than 30 mins,I checked task manager no process is running, but still I am getting error message. Feb 5, 2018 at 14:20
  • this happened after my first reboot from installing 20H2, 19042.662. SMH. This OS gets stranger every year.
    – JJS
    Jan 29, 2021 at 13:24
31

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.

29

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

5
  • 1
    This solution worked for me with VS2017, I had two of the 'Visual Studio Collector Service' (VS2015 installed too) so I selected the one with the description ending with 150 and then VS2017 fired up and loaded cached data (didn't pay attention to what the cache was). Didn't get the option to do a auto startup on Window 7. Closed Task Manager, reopen and the service was gone. Apr 4, 2020 at 12:35
  • 2
    This answer is the only one that saved me. Thank you, sir!
    – Syndog
    May 11, 2020 at 14:01
  • 1
    worked like a champ. vs2019. thanks...
    – Joe Healy
    Sep 30, 2021 at 11:56
  • 1
    It's late 2021 with an updated version of VS2019 and this still is an issue - but this step solved my case. Thank you great human!
    – Dan
    Oct 27, 2021 at 13:53
  • I had the VSIXAutoUpdate.exe process running that other answers have mentioned. When I started the collector service, that process ended and I was able to open VS.
    – kevinpo
    Nov 22, 2023 at 18:45
11

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

9

Try restarting your computer. That worked for me.

1
  • 2
    several times i have restarted my PC but its doesn't work for me Jan 9, 2017 at 7:15
6

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

5

Open Task manager and stop the Visual Studio Process.

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

This worked for me.

5

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!

1
  • 2
    possibly crash visual studio while interrupting in between. Apr 15, 2020 at 7:21
5

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

1
  • Yes. This. <sarcasm mode>Thank you @Microsoft. Now I cannot do any work until the (automatic and not so optimal) update process is finished. It's not like people have deadlines or so.</sarcasm mode>
    – JHBonarius
    Jun 12, 2021 at 18:38
4

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

4

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.

3

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.

1
  • That worked for me... I was looking in the Task Manager to see what I could kill to try again and I noticed a running process ended and vanished from the list. It was in the right position to be part of the VS updater, so I figured what the hell and tried to launch it... kicked off just fine. Jan 31, 2018 at 19:39
3

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.

2
  • 1
    Thanks man! This solved my issue with VS2017. I suspect PC shutdown during updates, leaving unfinished installation.
    – Nenad
    Apr 6, 2017 at 7:53
  • 1
    awesome dude - my setup was interrupted by sudden power-down and this solved the issue.
    – Pupsik
    Aug 14, 2018 at 6:07
3
  • 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.
0
3

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

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

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

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

2

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

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

2

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.

2

I have opened visual studio installer, clicked Modify, and launched the Visual Studio . It solved the issue.

2

Press Win+R and type %temp% then delete all files, and restart Visual studio. enter image description here

Check "Do this for all items" and press Skip button if required.

1

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
  • vs studio updates are suffering. facing the same issue today Dec 13, 2018 at 5:44
1

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

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

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.