每当我们从TFS 2008加载项目时,VS.NET 2008就会挂起 [英] VS.NET 2008 hangs everytime we load our project from TFS 2008

查看:60
本文介绍了每当我们从TFS 2008加载项目时,VS.NET 2008就会挂起的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我已经在MSDN中问过这个问题,但是没有答案,所以我也想问你,看看你是否对如何解决我的问题有任何想法.

我们的中型Windows解决方案(50个项目)存在问题,每次我们打开VS.NET 2008并将其加载到本地计算机中时,VS.NET IDE就会挂起(它显示了沙漏,您无法与其进行交互) )约20分钟.在它反应之前.

我们的解决方案存储在TFS 2008中.
Windows XP和Windows 7 PC均存在此行为.
我们尝试在TFS 2010(VS 2008-TFS 2010)中为该项目创建一个新的容器,但是我们遇到了同样的问题,它没有任何改变.

我刚刚注意到VS.NET 2008 IDE在显示工具栏中的下一条消息时挂起:

在工具栏的左上角:更新源控制状态.

在工具栏的右上角:处理组件.

似乎VS 2008在处理项目的程序集时挂起!

我尝试查看TFS客户端跟踪日志,但是跟踪工具似乎在应用程序挂起之前就停止写入日志文件.

非常感谢您的帮助.

谢谢大家

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

推荐答案

我们遇到了类似这样的问题,事实证明这是DNS问题……或者至少它表现为DNS类问题.

我们的修复程序是在主机文件中添加TFS服务器的名称/IP地址.

不知道这是否可以解决您的问题(因为我们甚至不确定这是否可以解决我们的问题),但是可以.

干杯.
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.


非常感谢!
奏效了!!!

谢谢您的帮助!
Thank you very much !
It worked!!!

Thank you for helping!


http://www.codeproject.com/Questions/111260/VS-NET-2008-hangs-everytime-we-load-our-project-fr. aspx?tab = mostrecent

更新源控制状态
耶!你摇滚!太感谢了!您不知道这对我的工作有多严重!

因为您对我的帮助很大,所以我会回报您的帮助,并帮助那些不知道如何更新主机文件的人.

我们有Visual Source Safe 2006和Visual Studio2008.
我们的VSS数据库位于网络驱动器上.

步骤1-确定VSS数据库位于哪台服务器\计算机上:
在Visual Studio 2008中,选择文件"->源代码控制"->更改源代码控制".注意服务器名称".您只对服务器名称感兴趣,该服务器名称是开始的反斜杠和下一个反斜杠之间的值.就我而言,它是dddmisfile
\\ dddmisfile \ vssdatabase \ FocusDD

步骤2-确定服务器的IP地址:打开命令提示符(开始->运行,键入cmd,然后按Enter键)并ping您的服务器名称(在命令提示符框中键入ping YOURSERVERNAME).我输入了ping dddmisfile,这就是我得到的:
c:\> ping dddmisfile

使用32个字节的数据ping dddmisfile.azdes.gov [10.104.49.10]:

来自10.104.49.10的回复:字节= 32时间= -52ms TTL = 128
来自10.104.49.10的回复:字节= 32时间= -52ms TTL = 128
来自10.104.49.10的回复:字节= 32时间< 1ms TTL = 128
来自10.104.49.10的回复:字节= 32时间< 1ms TTL = 128

10.104.49.10的Ping统计信息:
数据包:已发送= 4,已接收= 4,丢失= 0(丢失0%),
大约往返时间(以毫秒为单位):
最小值= 0ms,最大值= -52ms,平均值= 1073741798ms
您感兴趣的IP地址是紧随其后的IP地址.
就我而言,其10.104.49.10

您还对完全限定的域名感兴趣:这是附加了域的服务器的名称.就我而言,其dddmisfile.azdes.gov

第3步-使用任何文本编辑器将一行添加到您的主机文件中用记事本打开文件.在运行框中输入此内容(开始->运行)
C:\ WINDOWS \ NOTEPAD.EXE C:\ WINDOWS \ SYSTEM32 \ DRIVERS \ etc \ HOSTS
这是我修改之前看到的内容:
#版权所有(c)1993-1999 Microsoft Corp.
#
#这是用于Windows的Microsoft TCP/IP使用的示例HOSTS文件.
#
#此文件包含IP地址到主机名的映射.每个
#条目应保留在单独的行中. IP地址应
#放在第一列,后跟相应的主机名.
#IP地址和主机名之间至少应分隔一个
#个空格.
#
#此外,评论(例如这些评论)可能会插入到个人
上 #行或跟随以#"符号表示的机器名称.
#
#例如:
#
#102.54.94.97 rhino.acme.com#源服务器
#38.25.63.10 x.acme.com#x客户端主机

127.0.0.1本地主机

要将服务器名称添加到此列表中,只需添加新行并输入ip地址,然后按Tab键,然后按完全限定的域名即可:

10.104.49.10 dddmisfile.azdes.gov

而已!关闭记事本,您就完成了!甚至不需要重启!
请勿保存更改!
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!


这篇关于每当我们从TFS 2008加载项目时,VS.NET 2008就会挂起的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆