I was in the middle of debugging with VS210Pro that it crashed with some SVCHost error. After that when I want to open it I get this error:
The only thing I knew was safemode command, "devenv /SafeMode ", tried that. This didn't help either. So I am about to uninstall VS and reinstall it. A good two hours or so of the day will be gone :) so before starting to uninstall, I thought let's ask a question, maybe there is other ways for recovering VS that I am not aware of...
Fixed! The problem was caused by some updates from McAfee antivirus!
Related
I get this 'Visual Studio is busy' message often when I try to do anything in it. This happens in different situations. It can happen when VS starts before loading any solution. It can happen after loading a solution. I just upgraded today to 17.3.6 and it happened again. I have already reinstalled VS. I did a repair. I did a 'devenv /resetsettings', 'devenv /resetuserdata'. 'devenv /setup'. Deleted %USERPROFILE%\AppData\Local\Microsoft\VisualStudio\ \ComponentModelCache.
I did devenv.exe /log <path> and I didn't see anything glaring in the log.
I have a handful of extensions but haven't gone through disabling them and using VS without them. I need them for my work.
Once I get this message, there's nothing I can do but kill the process because VS never recovers from it. I am not seeing any pattern as to what might cause the issue and it seems it's random. I just have to keep killing and relaunching VS until I get a good instance (1-5 times).
Because it's random, I can't determine if anything I did from the above steps helps because VS can launch just fine sometimes.
I also recently changed the setting to not participate in the VS experience improvement program so that PerfWatson2 doesn't launch.
Any ideas on how to find the cause of this issue?
I have been trying to update and modify my Visual Studio 2017 for 2 days now, but each time I run the Visual Studio Installer, I get this message:
"A restart is required. If needed, any remaining setup will resume
after the restart."
Obviously I restarted about 10 times...
Any idea what I must delete where to get rid of any temp garbage that is hindering my attempts to modify my installation?
I encountered the same issue while installing Visual Studio 2019. I tried the PowerShell script proposed by #onmyway, to no avail.
Naturally, as with any simple problem in Windows, the fix is to manually edit the Windows Registry 🙄
It appears the installation may leave some stale keys behind. Remove the following keys from the registry according to your platform:
32Bit: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\Setup\Reboot
64Bit: HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\VisualStudio\Setup\Reboot
This immediately fixed my installation, and Visual Studio 2019 was able to start without further rebooting. I cannot promise that this will fix the issue for VS2017 users, but I leave this here for future readers.
Credit goes to Matt Cavallari from this forum thread.
I eventually found a working solution!
It is a script one runs with PowerShell, that resets the state.
So, for anyone else with the same issue, I hope this helps:
https://gist.github.com/heaths/1d0658c6903871e09b72395c9ab44db1#file-reset-instancestate-ps1
It seems that you've stopped the setup in half-way as same thing happened to me when I stopped the setup in half way. So I uninstalled the download and started downloading component by component which worked.
When I try to start it. The loading screen flash by in 1 millisecond then dissapear. Iv'e tried the devenv.exe /Setup solution, but devenv.exe won't start either.
Don't know what to do! I think it has something with to do with devenv.exe. Because after I used the selector, it has been corrupt.
Assuming you've already tried the basics (turning it off and turning it back on again, etc.), you may want to try running it as administrator. Right-click>Run As Administrator
I've had some issues on and off with VS not always working for me unless I run as admin.
If that fails, you can repair the installation by going through the Programs and Features menu.
recently got an issue when loading vs 2008, it displays this... can anyone tell me how to reregister the file... or something..
I don't wish to reinstall the vs 2008 again....
The Microsoft.VisualStudio.Xaml ({E58C2A8B-BCC4-4559-AD59-D62EB6D58A22}) did not load because of previous errors. For assistance, contact the package vendor. To attempt to load this package again, type 'devenv /resetskippkgs' at the command prompt.
The first step is to do exactly as the error message says. Enable the loading of skipped packages by running "devenv /resetskippkgs" from the command line. This will likely fix the problem.
If it does not, then I would repair the Visual Studio installation via Add / Remove Programs menu. This fixes most issues that cause the XAML designer to fail to load.
If you do a repair you must do the resetskippkgs above command because. There is a bug in repair such that it will not cause suppressed packages to start loading again (fixed in VS2010).
You can try devenv.exe /setup on a (elevated) command prompt. I don't know if it fixes your error, but it seems to fix a lot of things.
What happens if you do what the error message suggests, i.e. call devenv /resetskippkgs?
Other than that, instead of reinstalling, try the repair option of the setup, which fixes many errors.
don't relly need to reset anything, if you don't have Visual Studio SP1 installed, you should install it.. that fixed the problem for me :D
After Visual Studio 2005 displays the splash screen it locks up on me. No error, no cpu utilization, just a frozen splash screen. I've tried it in both /safemode and /resetsettings
I'm sure it's one of the services on my machine, just wonder if anyone else has had the problem and can help me with the hunt?
BTW, it's works in a VM in the same machine.
Update: I finally tried something new, I started VS2005 in Windows compatibility 2000 mode, it starts then shuts down immediately. I reset it to not run in compatibility mode and it starts right up. grrrrr
I think it might be a profile issue, but the root cause is still unresolved.
Have you tried running it in safe mode - if that doesn't let you sort it out you can try the /resetsettings switch, which has sorted out similar problems for me in the past.
/resetuserdata can also help.
look at the event log for you machine and see if VS threw any useful info in there; you may have to uninstall and reinstall
I have VMWare installed on my machine. This was the cause of my problem!
I started VS2005 in Windows compatibility 2000 mode as suggested above - it started up then shut down immediately. I then ran without compatibility mode and VS2005 now runs perfectly!
I wasted half a day trying to sort this out!
Thank you for your post!
:)
Try starting up with the log command:
devenv.exe /Log c:\vs.log
And see if anything is noted in it.
Another thing to try is to run VS in a temporary user account to see if the problem is strictly with your user environment or is system-wide. See this post.