65

I've met with a strange problem. I had 7 projects in the solution. I had to add another MVC project. Now when the document (from the new project) is opened (for example HomeController.cs) and when this project is initializing at the start, it freezes the whole IDE like this:

enter image description here

(Some projects do not load)

After that, I have to kill the process. When I open VS again and fast click on another project (which is initializing) the freezing issue is gone. I have no idea what can cause a problem like this. I've tried with and without ReSharper but I get the same result. Also, I restored default settings of VS. Also repaired whole VS.

Maybe someone had the same problem and could give some helpful advice?

krypru
  • 1,692
  • 3
  • 22
  • 29
  • Possible duplicate of [Why Visual Studio 2015 freezes crashes hangs on Designer view?](http://stackoverflow.com/questions/37681942/why-visual-studio-2015-freezes-crashes-hangs-on-designer-view) – Khalil Khalaf Sep 26 '16 at 12:59

11 Answers11

182

Usually removing of the hidden .vs folder in solution directory fixes the problem.

Artiom
  • 7,694
  • 3
  • 38
  • 45
38

Possible solutions:

  • Delete .vs folder as mentioned above

  • Clear temp files from %USERPROFILE%\AppData\Local\Temp

  • Readjust source control in Tools -> Options -> Source control -> Plugins, set to None, Save, close VS. Then reopen it and reset the plugin.

There is no particular order, but one of them might help.

Alexander Abakumov
  • 13,617
  • 16
  • 88
  • 129
ash
  • 381
  • 3
  • 3
  • 7
    This works for me too. But come on Microsoft. Your own development environment running on your own Operating System and you still can't get it right. *facepalm* – DrEntropy Oct 17 '20 at 19:16
  • Is this answer for Visual Studio 2019? – Naman Bansal May 29 '21 at 14:49
  • For me helped "Readjust source control in Tools -> Options -> Source control -> Plugins, set to None, Save, close VS. Then reopen it and reset the plugin.". I switched off GIT plugin, closed VS and reset again... Thanks. – David Najman May 16 '23 at 14:38
  • Works, and if it persists, run CCleaner to clean up junk files. – Divakar Aug 22 '23 at 14:20
7

I experienced the same issue with VS 2019 and fixed it by deleting the user.json file from %USERPROFILE%\AppData\Roaming\Visual Studio Setup

EDIT

The issue reappeared after a few days, so I located the user settings for Visual Studio 2019 (%USERPROFILE%\AppData\Roaming\Microsoft\VisualStudio\16.0_f124b472) and deleting the following files seemed to have reset VS to a normal state:

Current.vsk
User.vsk
ObjBrowEx.dat

Please close all your solutions before deleting the files

MJ33
  • 859
  • 12
  • 25
4

I used to have this problem, it was solved just by double clicking any of the stuck projects. This nudges the loading process somehow and causes unloaded projects to complete its loading.

Sisyphus
  • 900
  • 12
  • 32
  • I have been doing that way before knowing the real answer. But at the end your suggestion doesn't solve the problem. – krypru Jan 16 '18 at 19:13
  • Right. I basically ignored the popup. I could still click on the project elements, so when I built/ran the project it went away. – Dave Jun 19 '19 at 16:25
  • After downloading Progress Telerik UI extension, VS 2022 pro was crashing. Double-clicking the solution resolved my issue. Thanks for sharing! – Bazinga Dec 19 '22 at 23:18
2

Delete the .suo file in the solution folder.

I am pretty sure I found this answer somewhere on Stackoverflow before, but now I can't find it anymore. Credits to whoever came up with this.

vmb100
  • 127
  • 1
  • 7
1

None of above answers worked for me and found this solution. By opening solution in safe mode devenv.exe /SafeMode will show you details about file causing issue and then

  • Search for all the files in the project directory with extension *.user
  • and remove them all
  • last reloaded the projects
Aneeq Azam Khan
  • 992
  • 1
  • 10
  • 23
0

For Visual Studio 2019, I cleared my %USERPROFILE%\AppData\Local\Temp folder. It worked.

0

When you get over the past install multiply versions and the previous version was not fully uninstalled. This cause this issue in my case.

Control Panel > Programs > Programs and Features
Search for all Visual Studio related programs and Uninstall those.

niek tuytel
  • 899
  • 7
  • 18
0

For my case I need to delete the .vs all the time. Then I found out this link and did the setting. The issue never come back ever since.

https://msicc.net/how-to-work-around-ide-freezes-in-visual-studio-2019-when-switching-between-build-configurations/

  1. Open Tools / Options in Visual Studio 2019 and find the Projects and Solutions node
  2. Unselect ‘Allow parallel project initialization
  3. Click ‘OK’ and close the solution

enter image description here

TPG
  • 2,811
  • 1
  • 31
  • 52
0

Run command dotnet build before open VS

Sith2021
  • 3,245
  • 30
  • 22
0

What worked for me was: Opened another solution, ran it, and closed the solution Then opened the solution that was causing "not responding" issue and no more freezing