Ran into a real pain in the @ss today. While working with Team Foundation Server I was refactoring a couple of projects and at one point I needed to “Undo” my changes. This is normally accomplished by what you see on the left.
Well, to my dismay, as soon as I clicked on that button, Visual Studio 2005 would HANG. I mean, it would just stop. The only way to get it to respond (and yes this is odd) was to go to Task Manager, then right click on the application (on the Applications tab) and then click “Minimize” then click “Maximize” and the app would respond. Unfortunately the “Undo” didn’t happen though.
I looked all around the net, and couldn’t find anything. I did the following…
devenv /resetskippkgs (didn’t work)
devenv /resetsettings (or something like that – anyway – it didn’t work)
I also installed hot fixes that seemed to be related to this problem. Didn’t work. Reboot – didn’t work. Installed last nights updates – didn’t work.
I repaired Team Foundation Explorer – didn’t work.
As a last resort I decided to take VS2005 back to its clean slate state by firing off this command. This command is kind of hidden and is not supported by Microsoft (details – all the way at the bottom of that link).
Fix: devenv /resetuserdata
MSDN – Disclaimer: you will lose all your environment settings and customizations if you use this switch. It is for this reason that this switch is not officially supported and Microsoft does not advertise this switch to the public through devenv /? command.
After I fired that bad boy off, waited a few minutes and fired up VS2005 and everything worked again. Thank the big baby jeebus for not having to re-install VS2005 or use a MS Support call.
Leave a Reply
You must be logged in to post a comment.