This is a migrated thread and some comments may be shown as answers.

Error connecting to TFS

13 Answers 408 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Doug
Top achievements
Rank 1
Doug asked on 29 Oct 2013, 08:57 PM
We just created a Team Foundation Service project, and we are receiving the following error when trying to connect Test Studio to our project in TFS.

We just get a error message that says TF400813: Resource not available for anonymous access. Client authentication required.

It never gives us a popup to enter my microsoft account information, just an error message after I click connect. (See Picture)

The info in the fields is:

TFS 2010/2012/2013:    checked
HTTPS:    checked
Virtual Directory:   null
Collections:   defaultcollection
TFS Server Name:   hdslabs.visualstudio.com

[10/29 14:45:52,Telerik.TestStudio.exe(1016:33)] First trace message from pool unnamed thread (managed ID = 33, native ID = 100).
[10/29 14:45:52,Telerik.TestStudio.exe(1016:33),TeamFoundationServer] TFSServer.ConnectToServer() : ------- Function Start -------
[10/29 14:45:53,Telerik.TestStudio.exe(1016:33),TeamFoundationServer] TFSServer.ConnectToServer() : EXCEPTION! (see below)
     Situation: Exception connecting to TFS server
     Outer Exception Type: Microsoft.TeamFoundation.TeamFoundationServiceUnavailableException
     Message: Team Foundation services are not available from server https://hdslabs.visualstudio.com/defaultcollections.
          Technical information (for administrator):
          TF400813: Resource not available for anonymous access. Client authentication required.
     HRESULT: 0x80131600 (Official ID (if app.) = COR_E_APPLICATION, Error Bit = FAILED, Facility = FACILITY_URT, Code = 5632)
     Call Stack:
          at Microsoft.TeamFoundation.Client.TeamFoundationSoapProxy.ThrowIfServiceUnavailable(HttpWebResponse response, TfsConnection tfs, String nameOrUri)
          at Microsoft.TeamFoundation.Client.TeamFoundationSoapProxy.GetWebResponse(WebRequest request)
          at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
          at Microsoft.TeamFoundation.Proxy.BisRegistrationServiceProxyWsdl.GetRegistrationEntries(String toolId)
          at Microsoft.TeamFoundation.Proxy.BisRegistrationProxy.GetRegistrationEntries(String toolId)
          at Microsoft.TeamFoundation.Proxy.BisRegistrationService.RefreshMemoryCache()
          at Microsoft.TeamFoundation.Proxy.BisRegistrationService.RefreshCachesIfNeeded(Boolean direct)
          at Microsoft.TeamFoundation.Proxy.BisRegistrationService.GetRegistrationEntries(String toolId)
          at Microsoft.TeamFoundation.Framework.Client.PreFrameworkServerDataProvider.FindServiceLocation(String serviceType, String toolId)
          at Microsoft.TeamFoundation.Framework.Client.PreFrameworkServerDataProvider.LocationForCurrentConnection(String serviceType, Guid serviceIdentifier)
          at Microsoft.TeamFoundation.Client.TfsConnection.EnsureProviderConnected()
          at Microsoft.TeamFoundation.Client.TfsConnection.<EnsureAuthenticated>b__0()
          at Microsoft.TeamFoundation.Client.TfsConnection.UseCredentialsProviderOnFailure(Action action)
          at Microsoft.TeamFoundation.Client.TfsConnection.EnsureAuthenticated()
          at ArtOfTest.Common.TFSClient.TFSServer.ConnectToServer(IServerInfo server)

[10/29 14:45:53,Telerik.TestStudio.exe(1016:33),TeamFoundationServer] TFSServer.ConnectToServer() : ------- Function End -------

13 Answers, 1 is accepted

Sort by
0
Doug
Top achievements
Rank 1
answered on 29 Oct 2013, 09:03 PM
I should mention that I have Visual Studio 2013 already installed, as well as Team Explorer.

But I am using the stand-alone test studio version to connect with TFS.
0
Boyan Boev
Telerik team
answered on 04 Nov 2013, 09:27 AM
Hello Doug,

Thank you for contacting us.

It seems that you are using Team Foundation Services which is supported in our latest internal build (1002).

Please download and install our latest internal build (2013.1.1002) and give it a try. After login with your Telerik account, you can download it from this link.  

Let me know if this helps.

Regards,
Boyan Boev
Telerik
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Doug
Top achievements
Rank 1
answered on 04 Nov 2013, 03:51 PM
So I tried the new build, 1002, and the TFS Connection had an option for Team Foundation Service, but I encountered the same problem with the same error and log outcome.

Could this be some sort of firewall issue?

My goal right now is to move over to visual studio and try and connect to TFS through there, and export the project into there.  Right now, I am on Visual Studio 2013 and Test Studio is only ready for 2012, so I'm going to downgrade to 2012.

Do you guys know when you will have an upgrade that will fully connect to all the new Microsoft upgrades to 2013?
0
Boyan Boev
Telerik team
answered on 07 Nov 2013, 11:47 AM
Hi Doug,

Yes, this is could be some network/firewall settings. You should consult this with your network administrators.

Regarding VS 2013, we don't support it officially yet. We will probably support it with next release of Test Studio.

Thank you for you understanding.

Regards,
Boyan Boev
Telerik
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Jessica
Top achievements
Rank 2
answered on 04 Dec 2013, 04:22 PM
I am having the issue of not being able to connect to the TFS server. I was able to until I installed the recent build.

Here is the log:
[12/04 08:49:36,Telerik.TestStudio.exe(2284:17),TeamFoundationServer] TFSServer.ConnectToServer() : ------- Function Start -------
[12/04 08:49:36,Telerik.TestStudio.exe(2284:20),TestStudio] SerializerService.<GetSettings>b__2() : Unexpected character encountered while parsing value: <. Path '', line 0, position 0.
[12/04 08:49:36,Telerik.TestStudio.exe(2284:20),TestStudio] SerializerService.<GetSettings>b__2() : Unexpected character encountered while parsing value: <. Path '', line 0, position 0.
[12/04 08:49:36,Telerik.TestStudio.exe(2284:17),TeamFoundationServer] TFSServer.ConnectToServer() : EXCEPTION! (see below)
     Situation: Exception connecting to TFS server
     Outer Exception Type: Microsoft.TeamFoundation.TeamFoundationServiceUnavailableException
     Message: TF31002: Unable to connect to this Team Foundation Server: https://tfs.united-systems.com/alliance.
          Team Foundation Server Url: https://tfs.united-systems.com/alliance.
          
          Possible reasons for failure include:
          - The name, port number, or protocol for the Team Foundation Server is incorrect.
          - The Team Foundation Server is offline.
          - The password has expired or is incorrect.
          Technical information (for administrator):
          The request failed with HTTP status 404: Not Found.
     HRESULT: 0x80131600 (Official ID (if app.) = COR_E_APPLICATION, Error Bit = FAILED, Facility = FACILITY_URT, Code = 5632)
     Call Stack:
          at Microsoft.TeamFoundation.Client.TfsConnection.EnsureProviderConnected()
          at Microsoft.TeamFoundation.Client.TfsConnection.<EnsureAuthenticated>b__0()
          at Microsoft.TeamFoundation.Client.TfsConnection.UseCredentialsProviderOnFailure(Action action, Int32 retries, Boolean throwOnFailure)
          at Microsoft.TeamFoundation.Client.TfsConnection.EnsureAuthenticated()
          at ArtOfTest.Common.TFSClient.TFSServer.ConnectToServer(IServerInfo server)

     Inner Exception Type: System.Net.WebException
     Message: The request failed with HTTP status 404: Not Found.
     HRESULT: 0x80131509 (Official ID (if app.) = COR_E_INVALIDOPERATION, Error Bit = FAILED, Facility = FACILITY_URT, Code = 5385)
     Call Stack:
          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.Proxy.BisRegistrationServiceProxyWsdl.GetRegistrationEntries(String toolId)
          at Microsoft.TeamFoundation.Proxy.BisRegistrationProxy.GetRegistrationEntries(String toolId)
          at Microsoft.TeamFoundation.Proxy.BisRegistrationService.RefreshMemoryCache()
          at Microsoft.TeamFoundation.Proxy.BisRegistrationService.RefreshCachesIfNeeded(Boolean direct)
          at Microsoft.TeamFoundation.Proxy.BisRegistrationService.GetRegistrationEntries(String toolId)
          at Microsoft.TeamFoundation.Framework.Client.PreFrameworkServerDataProvider.FindServiceLocation(String serviceType, String toolId)
          at Microsoft.TeamFoundation.Framework.Client.PreFrameworkServerDataProvider.LocationForCurrentConnection(String serviceType, Guid serviceIdentifier)
          at Microsoft.TeamFoundation.Client.TfsConnection.EnsureProviderConnected()

[12/04 08:49:36,Telerik.TestStudio.exe(2284:17),TeamFoundationServer] TFSServer.ConnectToServer() : ------- Function End -------
0
Daniel
Top achievements
Rank 2
answered on 04 Dec 2013, 04:32 PM
Jessica, I've been having the same issue since 2013.1.1120.  It all works fine using the VS plugin, but standalone Test Studio will not connect.

[12/02 10:29:05,Telerik.TestStudio.exe(4656:22),TeamFoundationServer] TFSServer.ConnectToServer() : ------- Function Start -------
[12/02 10:29:06,Telerik.TestStudio.exe(4656:22),TeamFoundationServer] TFSServer.ConnectToServer() : EXCEPTION! (see below)
     Situation: Exception connecting to TFS server
     Outer Exception Type: System.Net.WebException
     Message: The request failed with the error message:
          --
          <head><title>Document Moved</title></head>
<body><h1>Object Moved</h1>This document may be found <a HREF="http://serverhere:8080/tfs/web/Services/v1.0/Registration.asmx">here</a></body>
          --.
     HRESULT: 0x80131509 (Official ID (if app.) = COR_E_INVALIDOPERATION, Error Bit = FAILED, Facility = FACILITY_URT, Code = 5385)
     Call Stack:
          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.Proxy.BisRegistrationServiceProxyWsdl.GetRegistrationEntries(String toolId)
          at Microsoft.TeamFoundation.Proxy.BisRegistrationProxy.GetRegistrationEntries(String toolId)
          at Microsoft.TeamFoundation.Proxy.BisRegistrationService.RefreshMemoryCache()
          at Microsoft.TeamFoundation.Proxy.BisRegistrationService.RefreshCachesIfNeeded(Boolean direct)
          at Microsoft.TeamFoundation.Proxy.BisRegistrationService.GetRegistrationEntries(String toolId)
          at Microsoft.TeamFoundation.Framework.Client.PreFrameworkServerDataProvider.FindServiceLocation(String serviceType, String toolId)
          at Microsoft.TeamFoundation.Framework.Client.PreFrameworkServerDataProvider.LocationForCurrentConnection(String serviceType, Guid serviceIdentifier)
          at Microsoft.TeamFoundation.Client.TfsConnection.EnsureProviderConnected()
          at Microsoft.TeamFoundation.Client.TfsConnection.<EnsureAuthenticated>b__0()
          at Microsoft.TeamFoundation.Client.TfsConnection.UseCredentialsProviderOnFailure(Action action)
          at Microsoft.TeamFoundation.Client.TfsConnection.EnsureAuthenticated()
          at ArtOfTest.Common.TFSClient.TFSServer.ConnectToServer(IServerInfo server)
 
[12/02 10:29:06,Telerik.TestStudio.exe(4656:22),TeamFoundationServer] TFSServer.ConnectToServer() : ------- Function End -------
0
Jessica
Top achievements
Rank 2
answered on 04 Dec 2013, 04:35 PM
You would think there would be a fix by now. We don't even use the Visual Studio plugin. It is getting to the point that we are thinking about switching products. I cannot run my tests remotely because it fails when trying to update the project files. It cannot update the project files because it cannot connect to TFS. Maybe there is some new setting that will not require it to update the files. I have not found one at this point.
0
Boyan Boev
Telerik team
answered on 09 Dec 2013, 05:14 PM
Hi,

What version of TFS do you use?

As I can see in the log the exception is TF31002 which means "Unable to connect to this Team Foundation Server". The possible reasons for that are:

- The name, port number, or protocol for the Team Foundation Server is incorrect.
- The Team Foundation Server is offline.
- The password has expired or is incorrect.

Please make sure you are entering the correct data in the correct fields in our TFS connection interface (i.e. it differs from VS interface). You can send us a screen shot.

Are you able to connect to the TFS through Visual Studio with the same credentials?  If so please send also a screen shot of Visual Studio connection settings for TFS.

Hope to hear from you soon.

Regards,
Boyan Boev
Telerik
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Bruno
Top achievements
Rank 1
answered on 10 Apr 2014, 06:57 AM
Hi,

Since we have updated our TFS to the Version 2013 I am having the issue of not being able to connect correctly to the TFS server.
If i open the TFS-Path it can connect and i am able to Check In / Check Out the Files. But it does show me only the TFS-icon, when I have Checked out the test. When i reopen Teststudio the connection isn't there anymore and I have to open the TFS-Path again and i don't see the pendig changes anymore (only in the VisualStudio 2010).
If i want to connect directly with the TFS i receive the error: Unable to connect to source control: Unable to connect to the remote server.

Here is the log:
[04.09 14:51:05,Telerik.TestStudio.exe(5136:1),TeamFoundationServer] TFSServer.ConnectToServer() : ------- Function Start -------
[04.09 14:51:27,Telerik.TestStudio.exe(5136:1),TeamFoundationServer] TFSServer.ConnectToServer() : EXCEPTION! (see below)
     Situation: Exception connecting to TFS server
     Outer Exception Type: System.Net.WebException
     Message: Unable to connect to the remote server
     HRESULT: 0x80131509 (Official ID (if app.) = COR_E_INVALIDOPERATION, Error Bit = FAILED, Facility = FACILITY_URT, Code = 5385)
     Call Stack:
          at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)
          at System.Net.HttpWebRequest.GetRequestStream()
          at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
          at Microsoft.TeamFoundation.Proxy.BisRegistrationServiceProxyWsdl.GetRegistrationEntries(String toolId)
          at Microsoft.TeamFoundation.Proxy.BisRegistrationProxy.GetRegistrationEntries(String toolId)
          at Microsoft.TeamFoundation.Proxy.BisRegistrationService.RefreshMemoryCache()
          at Microsoft.TeamFoundation.Proxy.BisRegistrationService.RefreshCachesIfNeeded(Boolean direct)
          at Microsoft.TeamFoundation.Proxy.BisRegistrationService.GetRegistrationEntries(String toolId)
          at Microsoft.TeamFoundation.Framework.Client.PreFrameworkServerDataProvider.FindServiceLocation(String serviceType, String toolId)
          at Microsoft.TeamFoundation.Framework.Client.PreFrameworkServerDataProvider.LocationForCurrentConnection(String serviceType, Guid serviceIdentifier)
          at Microsoft.TeamFoundation.Client.TfsConnection.EnsureProviderConnected()
          at Microsoft.TeamFoundation.Client.TfsConnection.<EnsureAuthenticated>b__0()
          at Microsoft.TeamFoundation.Client.TfsConnection.UseCredentialsProviderOnFailure(Action action, Int32 retries, Boolean throwOnFailure)
          at Microsoft.TeamFoundation.Client.TfsConnection.EnsureAuthenticated()
          at ArtOfTest.Common.TFSClient.TFSServer.ConnectToServer(IServerInfo server)

     Inner Exception Type: System.Net.Sockets.SocketException
     Message: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 192.168.1.122:8080
     HRESULT: 0x80004005 (Official ID (if app.) = E_FAIL, Error Bit = FAILED, Facility = FACILITY_NULL, Code = 16389)
     Call Stack:
          at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
          at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)

[04.09 14:51:27,Telerik.TestStudio.exe(5136:1),TeamFoundationServer] TFSServer.ConnectToServer() : ------- Function End -------

I got the standalone Version of Teststudio.

Regards,
Bruno
0
Boyan Boev
Telerik team
answered on 15 Apr 2014, 08:05 AM
Hello Bruno,

Please elaborate a bit more. What do you mean by "When I open TFS-Path"?

Please record a short video to show us the issue you are experiencing. Jing is great for this.

Meanwhile I will pass the exception to our devs.

Hope to hear from you soon.

Regards,
Boyan Boev
Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Bruno
Top achievements
Rank 1
answered on 17 Apr 2014, 09:56 AM
Hello Boyan,

I recorded a short video about the problem
and a printscreen of how I open the TFS-Path.
You can download the zip file here: https://www.dropbox.com/s/2e8ysindr5y4qbg/2014-04-17_1140_Open.zip
(I'm sorry the zip was too big to attach it here)

I've already installed the latest release (2014.1.410.0)

Thanks for your help.

Regards,
Bruno

0
Bruno
Top achievements
Rank 1
answered on 17 Apr 2014, 12:43 PM
Hello Boyan,

The TFS-Integration is now working for me.
Firstly I removed the sourcecontrol binding in the TestStudio.
(TestStudio asked me to remove it after the connection failed)
And then I connected the Project with a right click (on project-folder) again with the source control.

Regards,
Bruno
0
Boyan Boev
Telerik team
answered on 18 Apr 2014, 07:25 AM
Hi Bruno,

Glad to hear that.

If you need further assistance, please do not hesitate to contact us again.

Regards,
Boyan Boev
Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Doug
Top achievements
Rank 1
Answers by
Doug
Top achievements
Rank 1
Boyan Boev
Telerik team
Jessica
Top achievements
Rank 2
Daniel
Top achievements
Rank 2
Bruno
Top achievements
Rank 1
Share this question
or