简体   繁体   English

Visual Studio 2017-TFS 2017-“对象引用未设置为对象的实例”

[英]Visual Studio 2017 - TFS 2017 - “Object reference not set to an instance of an object”

I installed a new TFS 2017 on a fresh Windows 2012 R2 Datacenter server. 我在新的Windows 2012 R2 Datacenter服务器上安装了新的TFS 2017。 Than I created a project with a Git repository in it. 比我创建的项目中包含一个Git存储库。 Now I want to use this inside of my visual studio but as soon as I choose "Connect" on the specific project, I got the "Object reference not set to an instance of an object" message. 现在,我想在Visual Studio中使用它,但是一旦在特定项目上选择“连接”,我就会收到“对象引用未设置为对象实例”的消息。 After that, my Team Explorer looks like this: 之后,我的团队资源管理器如下所示: 在此处输入图片说明

How can I fix this problem? 我该如何解决这个问题? I already tried to delete the Visual Studio and TFS folders in my local AppData cache directory - nothing changes. 我已经尝试删除本地AppData缓存目录中的Visual Studio和TFS文件夹-没有任何更改。 I can't find any log files to check the problem, so I hope someone here can help me with that... 我找不到任何日志文件来检查问题,因此希望这里有人可以帮助我...

Edit : It works in Visual Studio 2015. But I want to use it in 2017... any advice? 编辑 :它可以在Visual Studio 2015中工作。但是我想在2017年使用它...有什么建议吗?

Edit 2 : Tested on 2 other systems by myself and two of my frieds tested it too - all the same problem. 编辑2 :我自己在另外2个系统上进行了测试,而我的两个朋友也对其进行了测试-都是相同的问题。 But if we use the "Clone in Visual Studio" link from the TFS Web view - we got a "Failure when receiving data from the peer" error. 但是,如果我们使用TFS Web视图中的“在Visual Studio中克隆”链接,则会收到“从对等方接收数据时失败”错误。

Works since the last VS2017 update... So it was a problem from the Git integration in the VS2017. 自上次VS2017更新以来一直有效...因此,这是VS2017中Git集成的问题。 Also on any other PC it works now with this update and without any other changes. 现在,它也可以在任何其他PC上使用此更新,而无需进行任何其他更改。

To narrow down the issue your could create a team project both from the web & from team explorer . 要缩小问题的范围,您可以通过网络团队资源管理器创建一个团队项目。

Moreover, since it works in VS2015, fail with 2017. Also suggest you to update your VS2017 to latest RTM version and try again due to this error: Cannot connect to VSTS and TFS from VS 2017 RC 此外,由于它在VS2015中工作,因此在2017年失败。还建议您将VS2017更新到最新的RTM版本,然后由于此错误而再试一次: 无法从VS 2017 RC连接到VSTS和TFS

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

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