Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

TF400324: Team Foundation services are not available from server #320

Closed
conner-fallone opened this issue Sep 26, 2017 · 2 comments
Closed

Comments

@conner-fallone
Copy link

I'm getting this error when trying to connect to TFS, and i'm not sure why. When looking at the logs, it seems to communicate fine with the server, until it gets to tf resolve, that is where it's dying. I've tried clearing my Team Foundation cache locally and that still didn't fix my problem. Could this point at an issue with the TFS server, or is this a problem with the extension? The collection it uses in the log has a /tfs as part of the collection, but when I see this error, it is not including /tfs in the path. Is this correct?

Here is part of the log:

2017-09-26T19:03:58.973Z - debug: [14328] repositoryRemoteUrl: https://tfs.mycompany.com/tfs/mycollection
2017-09-26T19:03:58.973Z - debug: [14328] IsSsh: false
2017-09-26T19:03:58.973Z - debug: [14328] proxy: not enabled, team services: false
2017-09-26T19:03:58.974Z - info: [14328] Sent TFVC tooling telemetry
2017-09-26T19:03:58.974Z - debug: [14328] Re-initializing the TfvcSCMProvider
2017-09-26T19:03:58.977Z - debug: [14328] TFVC Repository.CheckVersion
2017-09-26T19:03:58.977Z - debug: [14328] TFVC: tf add -noprompt -?
2017-09-26T19:03:58.983Z - debug: [14328] TFVC: spawned new process (duration: 5ms)
2017-09-26T19:03:59.019Z - debug: [14328] TFVC: add exit code: 0 (duration: 41ms)
2017-09-26T19:03:59.019Z - debug: [14328] TFVC Minimum required version: 14.102.0
2017-09-26T19:03:59.019Z - debug: [14328] TFVC (TF.exe, TF.cmd) version: 14.102.25619.0
2017-09-26T19:03:59.019Z - debug: [14328] TFVC Repository.GetStatus
2017-09-26T19:03:59.019Z - debug: [14328] TFVC: tf status -noprompt -collection:https://tfs.mycompany.com/tfs/mycollection ******** -format:detailed -recursive
2017-09-26T19:03:59.021Z - debug: [14328] TFVC: spawned new process (duration: 1ms)
2017-09-26T19:04:02.402Z - debug: [14328] TFVC: status exit code: 0 (duration: 3382ms)
2017-09-26T19:04:02.406Z - debug: [14328] TFVC Repository.FindConflicts
2017-09-26T19:04:02.406Z - debug: [14328] TFVC: tf resolve -noprompt ******** C:\Code\MyCode -recursive -preview
2017-09-26T19:04:02.408Z - debug: [14328] TFVC: spawned new process (duration: 2ms)
2017-09-26T19:04:02.971Z - info: [14328] Polling for latest current build status...
2017-09-26T19:04:02.972Z - info: [14328] Getting current build from badge...
2017-09-26T19:04:02.972Z - info: [14328] Polling for the pinned work itemquery
2017-09-26T19:04:02.972Z - info: [14328] Running pinned work item query to get count (RMS)...
2017-09-26T19:04:03.807Z - debug: [14328] TFVC: resolve exit code: 100 (duration: 1401ms)
2017-09-26T19:04:03.808Z - debug: [14328] TFVC errors (via stderr): TF400324: Team Foundation services are not available from server tfs.mycompany.com\MyCollection.
Technical information (for administrator):
The underlying connection was closed: An unexpected error occurred on a send.

@conner-fallone
Copy link
Author

Ended up figuring out that this is an issue with not using StrongCrypto in .NET. I had to run the following registry edit script which fixed my problem:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft.NETFramework\v2.0.50727]
"SchUseStrongCrypto"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft.NETFramework\v2.0.50727]
"SchUseStrongCrypto"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft.NETFramework\v4.0.30319]
"SchUseStrongCrypto"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft.NETFramework\v4.0.30319]
"SchUseStrongCrypto"=dword:00000001

@deenakannan
Copy link

Ended up figuring out that this is an issue with not using StrongCrypto in .NET. I had to run the following registry edit script which fixed my problem:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft.NETFramework\v2.0.50727]
"SchUseStrongCrypto"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft.NETFramework\v2.0.50727]
"SchUseStrongCrypto"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft.NETFramework\v4.0.30319]
"SchUseStrongCrypto"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft.NETFramework\v4.0.30319]
"SchUseStrongCrypto"=dword:00000001

should i do this on server or client?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants