Click here to Skip to main content
15,889,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello guys,

I have already asked this question in MSDN, but had no answer, so I would like to ask you too and see if you have any ideas on how I could solve my problem.

We have a problem with our medium size windows solution (50 projects), everytime we open VS.NET 2008 and load it in our local machines, VS.NET IDE hangs (it shows the hourglass, and you can't interact with it) for about 20 min. before it reacts.

Our solution is stored in TFS 2008.
This behaviour is presentes in both, Windows XP and Windows 7 PCs.
We tried creating a new container for the project in TFS 2010 (VS 2008 - TFS 2010), but we get the same problem, it doesn't change anything.

I've just noticed VS.NET 2008 IDE hangs while it shows the next messages in the toolbar:

In the left corner of the toolbar: UPDATING SOURCE CONTROL STATUS.

In the right corner of the toolbar: PROCESSING ASSEMBLIES.

It seems VS 2008 hangs while processing the assemblies of the project!

I tried looking at the TFS Client Tracing logs, but it seems the Tracing tool stops writing into the log file just before the application hangs.

I really appreciate any help from you.

Thank you all
Posted

We had an issue like this that turned out to be a DNS thing...or, at least, it manifested itself with DNS-ish issues.

Our fix was adding the name/IP address of the TFS server in our hosts file.

Not sure if that'll fix yours (as we're not even sure that's what fixed ours), but hth.

Cheers.
 
Share this answer
 
Thank you very much !
It worked!!!

Thank you for helping!
 
Share this answer
 
http://www.codeproject.com/Questions/111260/VS-NET-2008-hangs-everytime-we-load-our-project-fr.aspx?tab=mostrecent

UPDATING SOURCE CONTROL STATUS
YaY! YOU FRIGGIN ROCK! Thank you so much! You dont know how bad this was affecting my work!

Because you helped me so much, I'm gonna return the favor and help those who dont know how to update the hosts file.

We have Visual Source Safe 2006 and Visual Studio 2008.
Our VSS database is on a network drive.

Step 1 - Determine which server\computer the VSS Database is on:
In Visual Studio 2008 select File->Source Control->Change Source Control. Note the "Server Name". You're only interested in the server name which is the value between the beginning back slashes and the next backslash. In my case it is dddmisfile
\\dddmisfile\vssdatabase\FocusDD

Step 2 - Determine the ip address of the server: Open a Command Prompt (start->Run type cmd and press enter) and ping your server name (type ping YOURSERVERNAME in the command prompt box). I typed ping dddmisfile and this is what I got:
c:\>ping dddmisfile

Pinging dddmisfile.azdes.gov [10.104.49.10] with 32 bytes of data:

Reply from 10.104.49.10: bytes=32 time=-52ms TTL=128
Reply from 10.104.49.10: bytes=32 time=-52ms TTL=128
Reply from 10.104.49.10: bytes=32 time<1ms TTL=128
Reply from 10.104.49.10: bytes=32 time<1ms TTL=128

Ping statistics for 10.104.49.10:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = -52ms, Average = 1073741798ms
The IP Address you are interested in is the one that follows Reply from
In My case its 10.104.49.10

You're also interested in the fully qualified domain name: which is the name of the server with the domain appended to it. In My case its dddmisfile.azdes.gov

Step 3 - Add a line to your hosts file with any text editor Open the file with notepad. Type this in the run box (Start->Run)
C:\WINDOWS\NOTEPAD.EXE C:\WINDOWS\SYSTEM32\DRIVERS\etc\HOSTS
This is what I see before I modify it:
# Copyright (c) 1993-1999 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host

127.0.0.1 localhost

To add your server name to this list, simply add a new line and type the ip address then press tab then the fully qualified domain name:

10.104.49.10 dddmisfile.azdes.gov

Thats it! Close Notepad and you're done! Dont even need to reboot!
Dont for get to save your changes!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900