VS hangs when trying to open/create a project
Hi everybody! :-)
all of a sudden, out of the blue, VS studio started to hang and become not responding when I'm trying to open or create a new project.
It starts to load or create the project but than it just hangs and stops responding (not responding status). devenv.exe process gets stuck on 50% (+-1), and thats it.
I tried to uninstall and reinstall, but nothing works! I'm out of ideas! HELP
!!!
Thanks a lot!
Hey, thanks for your quick help.
I tried to run it under safe mode but it doesn't work, it still hangs.
Hey, thanks, but it doesn't work, and I didn't install any add-ins, I even did not install any kind of program.
I also noticed that it doesn't happen in all projects, just ones with COM components in them. for instance, a project withBandObject from the Code Project website (http://www.codeproject.com/csharp/BandObjects20.asp), I have used this object MANY times before, but now it won't load. I also tried to redownload it, but it still doesn't work.
Hmmm... Does the project that hangs have an open design surface that is hosting the COM control that you're talking about? The designer surfaces (like the Windows Forms designer) create instances of the controls that are hosted on them when the form is shown, even at design time. It's possible that when the designer tries to CoCreate the COM/ActiveX object the object cannot create itself and then hangs. This occassionally happens when the control makes assumptions about its visibility.
I woudl try the following. Open two VS instances. Use Tools | Attach to Process... in one VS to attach to the VS (devenv.exe). When you attach, make sure to select both the native and managed debugger. After its attached try to open the project in the VS that is being debugged. When that version of VS hangs use the async break button (the pause button) to see the callstack. Look through the threads and see what it is at the top of the callstack. If the designer is on the callstack, you may be able to tell if its trying to create a control.
If that's the case, the workaround make sure that form is closed prior to closing the project, such that it isn't opened the next time you open it.
If that doesn't help, then I think the next thing to do is submit a defect report via http://connect.microsoft.com/VisualStudio/Feedback.
Hope that helps!
Anson
You may have a problem with paths. Go to Tools | Options and click the Show All Settings checkbox. Under Import and Export Settings, pay close attention to the path where you save your settings to. If it is a network path and especially if you are using Roaming Profiles, the app may not be able to read the settings file.
Then go to Projects and Solutions and check the paths for the following:
Projects Location
Templates Location
Item Templates Location
The same applies here. If you have a path to a network drive, the app may not be able to read or find it.
All of this happened to me. I moved everything to my local drive and the problem was solved. Hope this helps!