简体   繁体   English

服务器信息在工作区定义中来自哪里?

[英]Where does the Server information come from in a Workspace definition?

I have an error where everytime I open Visual Studio, I get the following error: 我每次打开Visual Studio时都会遇到以下错误:

TF205020: Could not connect to server 'tfs.server.com\\collectionname'. TF205020:无法连接到服务器'tfs.server.com \\ collectionname'。 This server was used in your last session, but it might be offline or unreachable. 该服务器在您的上一个会话中使用过,但是它可能处于脱机状态或无法访问。 Confirm that the server is available on the network. 确认服务器在网络上可用。 To attempt to connect again, or to a different server, click 'Connect To Team Foundation Server' in Team Explorer or the Team menu. 若要尝试再次连接或连接到其他服务器,请在团队资源管理器或“团队”菜单中单击“连接到Team Foundation Server”。

The server returned the following error: TF400324: Team Foundation services are not available from server tfs.server.com\\collectionname. 服务器返回以下错误:TF400324:服务器tfs.server.com \\ collectionname中没有Team Foundation服务。

Technical information (for administrator): The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.We were unable to automatically populate your Visual Studio Online accounts. 技术信息(仅供管理员使用):基础连接已关闭:无法建立SSL / TLS安全通道的信任关系。我们无法自动填充您的Visual Studio Online帐户。

This is an on-premise TFS 2013 Update 4. 这是本地TFS 2013 Update 4。

I always get this error when starting Visual Studio and I have to go into Team Explorer and explicitly connect to the server to get it to connect correctly. 启动Visual Studio时,我总是会收到此错误,我必须进入Team Explorer并显式连接到服务器才能使其正确连接。

The issue is that the URL in the error above is wrong. 问题是上述错误中的URL错误。 It is missing a virtual directory. 它缺少虚拟目录。

As you can see the tfs directory is missing. 如您所见, tfs目录丢失了。 I can see that the server is setup correctly in Team Explorer and I can also see that it is setup incorrectly in the Workspace configuration. 我可以看到在Team Explorer中服务器的设置正确,也可以在Workspace配置中错误地设置服务器。 Here is a picture of the workspace config. 这是工作区配置的图片。

在此处输入图片说明

My question is: 我的问题是:

Where does this URL come from and why is it different to that stored in Team Explorer? 该URL来自何处,为什么与Team Explorer中存储的URL不同?

The URL is stored in your sln file. 该URL存储在您的sln文件中。 You can either do File -> Source Control -> Advanced -> Change Source Control 您可以执行File-> Source Control-> Advanced-> Change Source Control

Or you could crack open the sln file in notepad and change it there. 或者,您可以在记事本中打开sln文件并在那里进行更改。

I would recommend brute force approach first. 我建议先使用蛮力方法。 Delete that workspace and create new one from scratch. 删除该工作区并从头开始创建新的工作区。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM