Visual Studio freezes or hangs on startup
Asked Answered
M

15

59

I have been using Visual Studio for a while and found that when I open visual studio and open the project all the files that were open last time remain open.

This causes my Visual Studio to freeze or crash on startup.

I am using a lot of plugins in my installation and wonder if there is a way to prevent this from happening.

Mcginn answered 15/7, 2011 at 5:43 Comment(1)
Try to remove .vs file in the project folder...Extract
U
33

Have you tried resetting user settings? It did help me:

C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe /ResetUserData
Ulmer answered 21/10, 2015 at 14:0 Comment(4)
Yea, I tried your solution and now it is freezing on splash screen!Gondola
If you are upgrading from Visual Studio Community to Enterprise Edition, this is usually the best alternativeByelostok
Resolved it for me (Community edition) '''"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\devenv.exe" /ResetUserData'''Krouse
This not only makes my VS2015 now freeze at the splash screen, instead, but also the splash screen is now strangely all white, except "Visual Studio" written at the top in purple. Microsoft just keeps going down hill...Parenthood
C
29

Run: Devenv /ResetSkipPkgs

http://msdn.microsoft.com/en-us/library/ms241276%28VS.80%29.aspx

or

You are probably looking for the /SafeMode command line switch:

devenv.exe /SafeMode

This will start Visual Studio with all add-ins disabled.

Cheddite answered 15/7, 2011 at 5:54 Comment(4)
Run it under the Safe mode and then using Add-In Manager / Extension Manager remove the unrequired installs.Cheddite
/ResetSkipPkgs didn't do it for me, but /SafeMode did. Thanks.Gipson
cd "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\" and run devenv.exe /ResetSkipPkgs it works.Bowser
It worked for me, although the answer is not very clear...delete the folder c:\Program Files\ ?!?!Jennie
C
10

You can change your Visual Studio 2010 start up settings.

Tools --> Options --> Startup --> At startup --> Show empty environment --> Save

Visual Studio has a plugins limit. Use only plugins that best for you. There is a list for best Visual Studio 2010 plugins for developers.

Visual Studio 2010 - recommended extensions

Command answered 15/7, 2011 at 5:55 Comment(6)
i am not known what happend i have 5-6 plugin in premium and got found slow problemMcginn
You said I am using a lot of plugins then i think you use 20-25 plugins. Of course, 6 plugins shouldn't slow your IDE. Maybe your computer not enough for Visual Studio requirements ?Desk
4GB RAM in 64bit dual core. anything especial i need to got.Mcginn
Have you tried reinstall with using Visual Studio 2010 Uninstall UtilityDesk
If you use resharper, somtimes initial keyboard setup might take upto 10-15 min (not sure why)Gallfly
A Resharper 8 upgrade caused VS to hang on startup. This solution solved the problem. Thanks! (Also, I didn't see @anvarbekraupov's comment so didn't wait 10-15 mins!)Intellectuality
I
10
devenv.exe /ResetSettings

or

devenv.exe /ResetSetting

Worked fine for me

Idolah answered 12/12, 2016 at 13:35 Comment(2)
this usually doesnt work for VS2015 and 2017, below from Nicolasd92 is better option using ResetUserDataOntario
This resolved my issue in Visual Studio 2022. I ran devenv.exe /SafeMode first to confirm that Visual Studio 2022 opened normally in safe mode. Then ran devenv.exe /ResetUserData.Aurignacian
B
5

I had the same issue with Community 2015 version. I solved it with Vidas Vasiliauskas suggestion, which was to erase user settings.

The thing is that I previously had 2015 version, in which I was logged in with my Microsoft account. When trying to open version, it tried to do so with that same account, which I believe was the cause of the issue.

Therefore, I would suggest to those with the same problem to run the following command at Command Line Prompt:

C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe /ResetUserData

Byelostok answered 7/7, 2016 at 22:22 Comment(0)
F
1

In my case, VS 2013 Professional was hanging on startup because the license was no longer valid.

Last item in the log file:

<entry>
    <record>367</record>
    <time>2015/07/13 20:11:05.051</time>
    <type>Information</type>
    <source>UserConnection</source>
    <description>[email protected] signed in for IDE user</description>
</entry>

And on the msdn.microsoft.com subscription page: "Your subscription is no longer active, contact your administrator."

I had to get an updated subscription from my employer.

Flexure answered 13/7, 2015 at 21:6 Comment(0)
H
1

When it hangs on the splash screen:

It could be that an anti-virus solution is blocking Visual Studio.

Kaspersky Internet Security 16.0.1.445 makes Visual Studio 2015 hang on the splash screen. The older version 16.0.0.614 works fine.

Himalayas answered 21/6, 2016 at 8:25 Comment(1)
Thank you, had similar issue with another antivirus and Visual Studio 2017.Elman
B
1

Clear the tag's elements in C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\machine.config

Also do the same with C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.config

The tag should just be <runtime/>

Bivalve answered 4/1, 2018 at 13:6 Comment(0)
D
1

This is becuase of rendering IDE UI try this hope it will resolve

1- Open "Visual Studio"

2- Select "Options" from the top menu

3- Navigate to "Environment => General"

4- Unchecked "Optimize rendering for screens with different pixel densities"

5- Restart visual studio

Doc answered 26/9, 2019 at 12:32 Comment(0)
L
1

If your Visual Studio 2019 is stuck due to a faulty extensions, here is a way to get it back to normal.

First, start Visual Studio in safe mode (devenv.exe /SafeMode) and uninstall the troublemaker.

Hereafter, if Visual Studio 2019 is still unresponsive, you need to do the following:

  • Browse to %LOCALAPPDATA% and go to Microsoft -> VisualStudio -> 16.0_bb6da863 (or whatever version you have installed)
  • Delete the following folders (all cache related):
    • ComponentModelCache
    • ImageLibrary
    • MFECacheBackup
    • Extensions\*.cache

For reference:

enter image description here

Hope it helps you and safe a VS repair/reinstall.

Happy coding :-)

Lachrymal answered 27/4, 2021 at 21:8 Comment(0)
J
1

I had a hang (not responding) in VS2015 for a about 5 minutes after starting VS 2015 (the hang itself started about 2 minutes after VS 2015 opened).

It turned out that the SQM (Quality Metrics Service) and created thousands of files in C:\Users(me)\AppData\Local\Microsoft\VSCommon\14.0\SQM.

Deleting these file fixed the problem.

Turned off SQM via Windows registry by setting the dword to zero under Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\VSCommon\14.0

Jiminez answered 7/6, 2023 at 13:38 Comment(0)
B
0

I was having this issue when using the Git source-control plugin.

I ran devenv.exe /SafeMode

And then in Options -> Source Control -> Plug-in Selection made sure "None" or "Visual Studio Team Foundation Server" was selected. After that, VS started normally.

Betwixt answered 6/12, 2017 at 14:55 Comment(0)
K
0

Check Task Manager. I had a Setup.exe running (not sure what it was installing), but once I killed it, VS unfroze.

Kindrakindred answered 29/12, 2017 at 15:19 Comment(0)
K
0

I have got recently VS2017 stucked on start up . so I did this and worked for me : 1 - start cmd as admin : run the following:

cd "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE" devenv.exe /SafeMode

2- once VS is started , go to Tools => Extentions and Updates : then uninstall all plug-ins that installed recently ( notice the installed date ) and unnecessary ones)

Keratose answered 8/11, 2018 at 11:39 Comment(0)
R
0

This helped me: I deleted all SDK, JDK & JRE folders that had been rooted in VS settings before. After that I used devenv.exe /ResetUserData and devenv.exe /ResetSettings.

Worked for me on Visual Studio 2015.

Rigadoon answered 13/6, 2019 at 16:32 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.