visual-studio 无法访问 http://<tfs-server>:8080
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/129618/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Cannot Access http://<tfs-server>:8080
提问by Jason N. Gaylord
I've installed TFS 2008, but I can't seem to access the server. When I try to connect to it in Visual Studio, I can't. If I try by browser on a remote PC, I get a generic page cannot be displayed. On the server, I get a 403. Nothing was touched in IIS and the service is running as a Network Service. Any ideas?
我已经安装了 TFS 2008,但我似乎无法访问服务器。当我尝试在 Visual Studio 中连接到它时,我不能。如果我在远程 PC 上通过浏览器尝试,我得到一个无法显示的通用页面。在服务器上,我收到 403。IIS 中没有任何内容,该服务作为网络服务运行。有任何想法吗?
回答by ben
try:
尝试:
http://localhost:8080/Services/V1.0/ServerStatus.asmx. This will tell you if TFS is up and running. If you are getting anything else you need to look into IIS issues.
http://localhost:8080/Services/V1.0/ServerStatus.asmx。这将告诉您 TFS 是否已启动并正在运行。如果您得到其他任何信息,则需要查看 IIS 问题。
回答by Grant Holliday
I wrote a blog post on diagnosing these types of TFS connections.
我写了一篇关于诊断这些类型的 TFS 连接的博客文章。
http://blogs.msdn.com/granth/archive/2008/06/26/troubleshooting-connections-to-tfs.aspx
http://blogs.msdn.com/granth/archive/2008/06/26/troubleshooting-connections-to-tfs.aspx
The very first thing I do is confirm that it works for a known-good configuration – usually my workstation.
我做的第一件事就是确认它适用于已知良好的配置——通常是我的工作站。
Providing that works and the server appears to be functioning, the next thing I do is ask the user to call the CheckAuthentication web service using Internet Explorer.
假设它有效并且服务器似乎正在运行,我接下来要做的就是要求用户使用 Internet Explorer 调用 CheckAuthentication Web 服务。
The URL for this is: http://TFSSERVER:8080/services/v1.0/ServerStatus.asmx?op=CheckAuthentication
这个 URL 是:http://TFSSERVER:8080/services/v1.0/ServerStatus.asmx?op=CheckAuthentication
By doing this check, I am doing four things:
通过做这个检查,我做了四件事:
- Eliminating Team Explorer from the picture
- Eliminating the .NET networking stack from the picture
- Ensuring that Windows Authentication is working correctly (that's why I say IE)
- Ensuring that proxy settings are set correctly
- 从图片中消除团队资源管理器
- 从图中消除 .NET 网络堆栈
- 确保 Windows 身份验证正常工作(这就是我说 IE 的原因)
- 确保正确设置代理设置
In most cases I've seen, the TFS connection issues are because the proxy settings have changed or are incorrect. Because .NET and Visual Studio use the proxy settings from Internet Explorer, it's important to have them set correctly.
在我见过的大多数情况下,TFS 连接问题是因为代理设置已更改或不正确。因为 .NET 和 Visual Studio 使用 Internet Explorer 中的代理设置,所以正确设置它们很重要。
In rare cases it's beyond this. That's when I start looking at things like:
在极少数情况下,它超出了这个范围。那是我开始查看以下内容的时候:
- Can you resolve the server name?
- Can you connect using the IP address?
- Are there HOSTS file entries? (see: c:\windows\system32\drivers\etc\hosts)
- Can you ping the server?
- Can you telnet to port 8080?
- Does the user actually have access? Run TfsSecurity.exe /server:servername /im n:DOMAIN\User to check their group memberships
- Have you changed your domain password lately? In some cases they'll need to logoff the workstation and log back on again to get a new security token.
- Is the computer's domain certificate valid? update the certificate: gpupdate /force
- 你能解析服务器名称吗?
- 可以使用IP地址连接吗?
- 是否有 HOSTS 文件条目?(请参阅:c:\windows\system32\drivers\etc\hosts)
- 你能ping通服务器吗?
- 你能telnet到8080端口吗?
- 用户真的有访问权限吗?运行 TfsSecurity.exe /server:servername /im n:DOMAIN\User 来检查他们的组成员身份
- 您最近是否更改了域密码?在某些情况下,他们需要注销工作站并重新登录以获取新的安全令牌。
- 计算机的域证书是否有效?更新证书: gpupdate /force
Hope this helps.
希望这可以帮助。
回答by Cosmo Skidoodle
Turns out the time and date on my computer was not "close enough" to the time and date on the tfs server. Changed my system clock setting and problem went away.
原来我电脑上的时间和日期与 tfs 服务器上的时间和日期“不够接近”。更改了我的系统时钟设置,问题就消失了。
回答by deadManN
Add this to the cases for future users, as i had this issue on server 2016...
将此添加到未来用户的案例中,因为我在服务器 2016 上遇到了这个问题......
if your firewall allow only Domain and Private Network, it may not work on client. make sure you give public permission, if server network is set to public...
如果您的防火墙只允许域和专用网络,它可能无法在客户端上工作。确保您授予公共权限,如果服务器网络设置为公共...
The error you may face:
ERR_CONNECTION_TIMED_OUTfor
http://fserver:8080/tfs
您可能面临的错误:
ERR_CONNECTION_TIMED_OUT对于
http://fserver:8080/tfs
回答by DougN
What happens if you send a simple HTTP request to the server directly?
如果直接向服务器发送一个简单的 HTTP 请求会发生什么?
ie: telnet 8080 [enter] GET / HTTP/1.1[enter] [enter] [enter]
即:telnet 8080 [输入] GET / HTTP/1.1[输入] [输入] [输入]
That might give a hint about whether IIS is actually serving anything. If you can do that on the server, what about from a different machine? If the results are different a good guess is there are some security/firewall issues somewhere. HTH a little.
这可能会暗示 IIS 是否真的在提供任何服务。如果您可以在服务器上执行此操作,那么在另一台机器上呢?如果结果不同,一个很好的猜测是某处存在一些安全/防火墙问题。HTH一点。
回答by Bruce Chapman
I went through everything on a similar problem.
我在类似的问题上经历了一切。
I logged onto my tfs server and connected directly there.
我登录到我的 tfs 服务器并直接连接到那里。
I also used a TFS admin tool I downloaded some time ago from Microsoft, and made sure I was in all the right groups and projects.
我还使用了一段时间前从 Microsoft 下载的 TFS 管理工具,并确保我在所有正确的组和项目中。
I then went back to the client PC with the problem, tried the services/1.0/serverstatus.asmx?op=CheckAuthentication Url again, and it worked this time.
然后我回到有问题的客户端 PC,再次尝试 services/1.0/serverstatus.asmx?op=CheckAuthentication Url,这次成功了。
AFter that full service was restored to my PC.
在我的 PC 恢复完整服务之后。
So I don't have the exact answer, but I would go through the checklists presented by Grant Holliday in his answer.
所以我没有确切的答案,但我会仔细阅读 Grant Holliday 在他的回答中提供的清单。

