We are running TFS 2010 and VS 2010. On my machine I keep getting "TF26173: Team Foundation could not connect to the application tier"
I have VS2010, TeamCompanion 4.2 and TFS Power Tools on Windows 7 x64 which connect to the server. I have found a fix for this which is to close everything down and clear the "C:\Users\ user\AppData\Local\Microsoft\Team Foundation\3.0\Cache" folder.
This then allows me to connect again, but within a few operations the error re-occurs. Whilst the machine is in the error state I can do Source control operations OK, but I can't view or change work items or amend area's and iterations.
All other users on the server have no issues, so I think it has to be a client issue. I have tried to query the web service url's in the cached files and all respond OK. My machine is on the same network as the OK users (all internal) so don't think it is a network issue.
Any other ideas on how to fix or get to the problem would be appreciated.
EDIT: I have found a full stack trace of the error
Microsoft.TeamFoundation.WorkItemTracking.Client.ConnectionException: TF26173: Team Foundation could not connect to the application tier. Check that you have a network connection and that the Team Foundation Server is available. If the problem persists, contact your Team Foundation Server administrator. ---> System.Net.WebException: The request failed with HTTP status 404: Not Found.
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at Microsoft.TeamFoundation.WorkItemTracking.Proxy.ClientServiceProxy.GetMetadataEx2(MetadataTableHaveEntry[] metadataHave, String& dbStamp, Boolean useMaster, Int32& locale, Int32& comparisonStyle, Int32& mode)
at Microsoft.TeamFoundation.WorkItemTracking.Proxy.WorkItemServer.GetMetadataEx2(String requestId, Boolean useMaster, MetadataTableHaveEntry[] metadataHave, String& dbStamp, IMetadataRowSets& metadata, Int32& locale, Int32& comparisonStyle, Int32& displayMode)
at CProdStudioBackendChannel.GetMetadata(CProdStudioBackendChannel* , tagVARIANT* pvarLocale, tagVARIANT* pvarComparisonStyle, PsUserDisplayModeEnum* pDisplayMode, Boolean* pfUseSIDSecurity, Int32 fNoFire, Int32 fByPassFireOnThis, WorkItemServer clientService)
--- End of inner exception stack trace ---
at Microsoft.TeamFoundation.WorkItemTracking.Client.DataStore.HandleComException(Int32 hr)
at Microsoft.TeamFoundation.WorkItemTracking.Client.DataStore.DatastoreClass.ConnectEx(String connectionString, String defaultCachePath, String instanceId, String userSamName, String userFriendlyName, String userSid, WorkItemServer clientService)
at Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemStore.InitializeInternal()
at Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemStore.Microsoft.TeamFoundation.Client.ITfsTeamProjectCollectionObject.Initialize(TfsTeamProjectCollection teamProjectCollection)
at Microsoft.TeamFoundation.Client.TfsTeamProjectCollection.InitializeTeamFoundationObject(String fullName, Object instance)
at Microsoft.TeamFoundation.Client.TfsConnection.CreateServiceInstance(Assembly assembly, String fullName)
at Microsoft.TeamFoundation.Client.TfsConnection.GetServiceInstance(Type serviceType, Object serviceInstance)
at Microsoft.TeamFoundation.Client.TfsTeamProjectCollection.GetServiceInstance(Type serviceType, Object serviceInstance)
at Microsoft.TeamFoundation.Client.TfsConnection.GetService(Type serviceType)
at Attrice.TeamFoundation.Controllers.ServerWrapper.GetWorkItemStore()
at Attrice.TeamFoundation.Controllers.TfsController..ctor(ServerWrapper server)
at Attrice.TeamFoundation.Sidekicks.VisualStudio.TeamFoundationContext.ProjectContextChanged(Object sender, EventArgs e)
at Microsoft.VisualStudio.TeamFoundation.TeamFoundationServerExt.OnActiveContextChanged(ActiveContextChangedEventArgs args)
EDIT 2: I have submitted this issue to Microsoft as there doesn't seem to be an answer. You can view the ticket at
Thanks in advance
Dave