TF400324 - "Page Not Found" in Version Control Explorer

We use TFS2012 and VS2012 (some use Update1 and some use Update2).). In some machines we get:

TF400324: Team Foundation services are not available from server vstfps\Protection. Technical information (for administrator): Page not found. 

This happens with any access to source control, both in VS2012, and when you run "tf.exe get". However, other TFS services work fine, such as work item requests.

I uninstalled and reinstalled VS (this time without Update2) and the problem persists.

I found a similar report on the problem , although it is slightly different, and in any case there is no fix.

Debugging with Netmon, I noticed that the affected machines use a different URI:

 Good: /tfs/Protection/VersionControl/v4.0/repository.asmx Bad: /tfs/Protection/VersionControl/v5.0/repository.asmx 

What determines the URI that a computer uses? How to change this?

+4
source share
1 answer

Workaround: Close Visual Studio and related applications, then delete %LocalAppData%\Microsoft\Team Foundation\4.0\Cache .

Reason: (reconstructed from the reports of my sysadmin ...)

My RTM TFS2012 server was cloned from an existing server while maintaining the same collection GUID. Effects:

  • Update1 was installed and removed on the old server. TFS2012 RTM only supports URI v4.0, and TFS2012 Update1 added v5.0. Therefore, sometimes clients get confused and switch to the old server, get the URI v5.0 and store it in the cache in ...\Cache\<guid>\LocationServiceData.config .
  • We had TFS crashes with "Unable to copy activity logs" because they tried to copy to the old server.

Fix: Change the collection GUID on the new server by doing:

 tfsconfig ChangeServerID /sqlinstance:<SQLInstanceName> /databasename:tfs_configuration 

after that, people should clear the cache for the last time and that it.

+5
source

All Articles