Why does visual studio crash when opening a solution - visual-studio

I've been having some issues using visual studio 2017. Whenever I try to open a solution, it immediately crashes. I've tried reinstalling and repairing it. I tried installing the 2013 version, but I still get the same behavior. I tried resetting settings, starting in safe mode, and deleting the .suo file. How can I fix this?

Related

Visual Studio 2022 Professional Source Control Explorer Stuck in Working

I have a new laptop. After installed Visual Studio 2022, the Source Control Explorer worked. But after I continue to install more other software and deleted some downloaded solution files from TFS, the explorer is stuck in working. It eventually leads to a frozen Visual Studio with busy message.
Using another laptop with Visual Studio 2022 works.
How to debug and fix this issue?
I think your best bet right now would be to uninstall Visual Studio and start from scratch. Depending on what "downloaded solution files" you deleted, something could be seriously messed up with your current installation of VS.
I would do a full re-install and try again. This may end up saving you time versus troubleshooting.

Visual Studio crashes on 'add reference'

Visual Studio crashes when opening any solution and right-clicking 'references' and choosing 'add reference'. The dialog opens for a few seconds, VS crashes and restarts. Tried uninstalling and reinstalling VS2013, then uninstalling again with VS Uninstaller and reinstalling, and installing VS2015. Problem persists on both new installations. Had Beckhoff TwinCAT 3.1 installed but uninstalled also this before first reinstalling Visual Studio, to no avail.
Is there a registry key or specific locations where all VS installations look for packages?
This was solved by doing another reinstall of Visual Studio, but this time cleaning remnants manually. VS Uninstaller DOES NOT do a complete uninstall.
WARNING: This will reset all project settings in your
solution!
I had the same problem. Just delete .vs\<solution name> folder and reopen the solution and add the reference.

Visual Studio 2015 crashes when opening any solution

I have seen many solutions here about visual studio crashing. None of them have fixed my problem. In my case Visual Studio crashes when opening any type of solution, located on any drive based on any language (including opening it from Unity).
I tried deleting .suo files and it did not work. I tried installing updates and it did not work. I tried repairing and it did not work.
Is there any possible solution that can help me with this?
For some reason deleting component model cache did not help. But deleting component model cache for a previous version of visual studio (12.0) did in fact help. For some reason that was the culprit that created the problems

VS 2013 giving The operation could not be completed. Invalid pointer on Razor views

I installed VS 2015 version on my system. I already had Visual studio 2013 update 4 installed on my machine. But now, whenever I try to open any cshtml ( razor view) in VS 2013, I get following error:
Microsoft Visual Studio
The operation could not be completed. Invalid pointer
OK
Please suggest me its solution.
For anyone arriving here after installing Visual Studio 2015 Update 1 and then updating some packages, here is what fixed it for me:
Close Visual Studio
Delete %LocalAppData%\Microsoft\VisualStudio\14.0\ComponentModelCache
Re-open Visual Studio
I was getting this error message in VS2015 and the fix worked for me, so it seems to apply to 2013 and 2015.
I found the solution on another Stack Overflow question: Visual Studio 2015 Broken Razor Intellisense.
Installing Visual Studio 2015 Update 1 fixed this for me:
https://www.visualstudio.com/en-us/news/vs2015-update1-vs.aspx
Sometimes it helps to delete Solution User Options (.Suo) File. In my case it was the evil and worked for me.
I'm not sure what ended up fixing it, but I closed Visual Studio and opened up developer tools, and ran devenv /SafeMode which starts it with no extensions installed. I then navigated and opened up the solution in the instance and it worked. It complained about source control bindings and removed those (This solution used to be in a TFS project and now it's in a git tfs project). Then after saving it and closing visual studio I was able to re-open the solution from file explorer.
I'm not sure if it was the devenv or the source control bindings that fixed it, or just restarting visual studio for the umpteenth time, but it appears to work now.
I have the same error and I have tried the following with NO SUCCES
“%ProgramFiles%\Common Files\Microsoft Shared\VS7DEBUG” to something
else. I changed it to VS7DEBUG1.
Delete the content of
%LocalAppData%\Microsoft\VisualStudio\14.0\ComponentModelCache
Installed Servicing Update
(KB3110221) -
https://blogs.msdn.microsoft.com/visualstudioalm/2016/01/26/servicing-update-available-for-visual-studio-update-1/
C:\Program Files (x86)\Microsoft Visual Studio14.0\Common7\IDE\devenv.exe /resetuserdata
C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe
/resetsettings
I finally uninstalled visual studio 2015. Restarted and installed it again and then it worked.
Sometimes it is just a matter of closing Visual Studio 2015 and then open again.
I have had this happen on a few machines.
This does happen
"Have you tried to delete the "Your_Solution_FileName.suo" file?"
Also computer crashing like e.g. power outage etc...
I managed to get rid of this error by a combination of the answers here plus some more:
Close Visual Studio
Delete %LocalAppData%\Microsoft\VisualStudio\14.0\ComponentModelCache
Delete the .suo file
Re-open Visual Studio - the same error
Edit the .csproj file - >go to the
ProjectExtensions/VisualStudio/FlavorProperties, delete the entire
FlavorProperties element.
Reload the project
try
reopening solution
renaming the solution file (.sln) to something else
deleting of "ProjectExtensions"

Visual Studio 2013 Express crashes when adding a new file

VS 2013 Express is crashing when adding any new type of file to a project.
e.g. Trying to add a main.cpp to a new empty C++ project results in the program either hanging then crashing or instantly quitting.
I've tried rebooting, repairing the installation, running in safe mode, re-installing etc.
The problem continues to persist.
I'm on a Windows 8.1
Anyone have any ideas?
EDIT: Installed Visual Studio Express 2012 and the problem is occurring there too. It is not occurring in Visual Studio 2015 RC
Fixed the issue by uninstalling Visual Studio 2015 RC.
Did you try it with /resetsettings or /safemode? If you are moving back and forth between versions, you could have settings from one version effecting the other.

Resources