EmanP
EmanP

Reputation: 306

Connect to TFS error TF31001 object reference not set to an instance of an object

I have a user running VS 2015 trying to connect to our on premise TFS 2015 U2 environment. Other users are able to connect but this user is receiving the following: enter image description here

Object reference not set to an instance of an object when trying to connect to the TFS instance. Won't even list the collections. I've verified he can ping the server, he can open tfs web access in IE. Any idea why this is occurring or what log I can look at on his machine that would provide more detail?

Upvotes: 10

Views: 11238

Answers (4)

Peter Nason
Peter Nason

Reputation: 1

One cause for this that I experienced was based on AD credential mismatch. To resolve this, close VS, open control panel/Credential Manager/Windows Credentials find TFS and remove the credential then open VS again.

Upvotes: 0

Paras Sachapara
Paras Sachapara

Reputation: 372

One of the most possible cause is your tfs server machine running out of space.

Upvotes: 8

NidhinSPradeep
NidhinSPradeep

Reputation: 1304

Try opening Visual studio in administrator mode. This resolved my issue

Upvotes: 0

Cece Dong - MSFT
Cece Dong - MSFT

Reputation: 31075

  1. Try to clear the cache on this client computer:

    • Close any open instances of Visual Studio.
    • Browse to the following folder: C:\Users\username\AppData\Local\Microsoft\Team Foundation\6.0\Cache.
    • Delete the contents of the Cache directory, including all subfolders.
  2. Disable the antivirus software or firewall to determine whether that change corrects the problem.

  3. Use the IP address of TFS instead of server name if you have used server name.

Upvotes: 16

Related Questions