Geeks With Blogs
Brian Biales because blogging is just the easiest way to remember things

I don't know if anyone else has experienced this, but it is getting pretty annoying.

I have a VS2005 project that is version controlled with VSS.  When I open the project, it takes up to 4 or 5 minutes to open.  This time I did a little digging, and see that the devenv.exe CPU is at from 15 to 40%.  Watch the network, and I see that it is very busy reading data.  Nothing else going on, it is definitely VS2005...  Most likely going to my VSS server. 

By the time the project finally opens, it has used 3.5 minutes of CPU, and received over 300MB over the LAN, and sent over 50MB.

The entire directory tree of this project, including the dll's and exe's that are not version controlled, is only a little over 10MB. 

Anybody else ever see such a problem?   Any suggestions?   I'm stumped...

Edited 3/15/2007:
If you look in the feedback, you'll see someone suggested turning off AntiVirus.  I don't know why VS2005 / VSS has this problem, while earlier versions seem just fine with the AntiVirus turned on, but sure enough, I turned off Norton's "Auto-Protect" temporarily, and my 5 minute load came down to about 30 or 40 seconds.

Posted on Wednesday, March 14, 2007 11:09 AM .NET , SCSF - Smart Client Software Factory , Version Control , Visual Studio 2005 | Back to top


Comments on this post: Visual Studio 2005 takes *forever* to load a project

# re: Visual Studio 2005 takes *forever* to load a project
Requesting Gravatar...
Have you tried capturing any of the traffic going over the wire during that time? Try sticking a protocol analyzer on it and see what you can dig up - I know it's saved me time in the past :)
Left by Lou on Mar 14, 2007 11:13 AM

# re: Visual Studio 2005 takes *forever* to load a project
Requesting Gravatar...
Disable Antivirus
Left by Pat on Mar 14, 2007 12:11 PM

# re: Visual Studio 2005 takes *forever* to load a project
Requesting Gravatar...
Thank you both for the comments. Pat was dead on - I turned off Norton's "Auto-protect" and, while it still generated a bit of network traffic and took a good 30-40 seconds to load, it sure beats waiting for 5 minutes. Perhaps Subversion is in my future...
Left by Brian Biales on Mar 14, 2007 4:55 PM

# re: Visual Studio 2005 takes *forever* to load a project
Requesting Gravatar...

Fix For Slow or Hanging Visual Studio Using CAB, SCSF and SourceSafe
Author: Jeff Noble

FOR INSTRUCTIONS ON THE MAY 2007 RELEASE CLICK HERE!!Purpose

This document explains how to fix the problem associated with CAB, Guidance Packages, Visual Studio and SourceSafe (vss).

Symptoms
There are a couple of symptoms associated with this problem. They are depicted below:

Opening a SourceSafe bound CAB solution takes excessive time.
Right Clicking folders in a CAB/VSS solution causes an extended wait and blinks the hourglass cursor continually.
Closing a CAB/VSS solution or Visual Studio when a CAB/VSS solution is loaded. Causes Visual Studio to hang with a blinking hourglass cursor.
Resolution
Open GuidanceAutomation.sln (located in Microsoft SCSF).

Open the file ViewTemplateReference.cs. You can find it in the SmartClientDevelopment project in the References folder.

Locate the ContainsReference method and comment out (or remove): vsProject.Refresh();

Build the solution

You must register the package after you build it. I chose to replace the existing package. That way it always uses my change as I consider it a bug for my purposes.

You can replace the original by copying the SmartClientDevelopment.dll to the debug directory in the SCSF Guidance package. To do this:

Copy SmartClientDevelopment.dll from “C:\Program Files\Microsoft SCSF\GuidancePkg\Source\SmartClientDevelopment\bin\Debug”
Overwrite the existing dll in “D:\Program Files\Microsoft SCSF\GuidancePkg\bin”

Left by cwf on Jul 20, 2007 5:52 AM

# re: Visual Studio 2005 takes *forever* to load a project
Requesting Gravatar...
Old post, but works for the same problem in Visual Studio 2008. Thanks guys!
Left by Der on Aug 12, 2009 1:57 AM

Your comment:
 (will show your gravatar)


Copyright © Brian Biales | Powered by: GeeksWithBlogs.net