gpt4 book ai didi

azure - 错误 : The specified registry key does not exist. 尝试使用网络凭据连接到 TFS 2012。

转载 作者:行者123 更新时间:2023-12-02 06:21:47 24 4
gpt4 key购买 nike

var tfsUri = new Uri(credentials.ProjectCollectionUrl);
var user = new NetworkCredential(credentials.Username, credentials.Password);
var tfs = new TfsTeamProjectCollection(tfsUri, user);
tfs.EnsureAuthenticated();

Web应用程序部署在azure上。它在本地工作,但在服务器上崩溃。

堆栈跟踪:* 在 Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str) 在 Microsoft.Win32.RegistryKey.CreateSubKeyInternal(字符串子项、RegistryKeyPermissionCheck 权限检查、对象registrySecurityObj、RegistryOptions 注册表选项) 在 Microsoft.Win32.RegistryKey.CreateSubKey(字符串子项,RegistryKeyPermissionCheck 权限检查,RegistryOptions 选项) 在 Microsoft.VisualStudio.Services.Common.TokenStorage.RegistryTokenStorageHelper.GetRootKey(String subkeyName) 在 Microsoft.VisualStudio.Services.Common.TokenStorage.RegistryTokenStorage.RetrieveToken(VssTokenKey tokenKey) 在 Microsoft.VisualStudio.Services.Common.TokenStorage.VssTokenStorage.Retrieve(VssTokenKey tokenKey) 在 Microsoft.TeamFoundation.Client.TfsClientCredentialStorage.RetrieveToken(Uri serverUrl,VssCredentialsType credentialType) 在 Microsoft.TeamFoundation.Client.CookieCredential.OnCreateTokenProvider(Uri serverUrl,HttpWebResponse 响应) 在 Microsoft.TeamFoundation.Client.IssuedTokenCredential.CreateTokenProvider(Uri serverUrl,HttpWebResponse 响应,IssuedToken failedToken) 在 Microsoft.TeamFoundation.Client.TfsClientCredentials.TryGetTokenProvider(Uri serverUrl、IssuedTokenProvider& 提供商) 在 Microsoft.TeamFoundation.Client.Channels.TfsHttpRequestHelpers.PrepareWebRequest(HttpWebRequest webRequest、Guid sessionId、字符串操作名称、CultureInfo CultureInfo、TfsRequestSettings 设置、TfsClientCredentials 凭据、IdentityDescriptor 模拟、IssuedToken& currentToken、IssuedTokenProvider& tokenProvider) 在Microsoft.TeamFoundation.Client.Channels.TfsHttpRequestHelpers.CreateSoapRequest(Uri requestUri,Guid sessionId,字符串soapAction,字符串操作名称,CultureInfocultureInfo,TfsRequestSettings设置,TfsClientCredentials凭据,IdentityDescriptor模拟,IssuedToken&currentToken,IssuedTokenProvider&tokenProvider) 在 Microsoft.TeamFoundation.Client.Channels.TfsHttpWebRequest.CreateWebRequest() 在 Microsoft.TeamFoundation.Client.Channels.TfsHttpWebRequest.SendRequest() 在 Microsoft.TeamFoundation.Client.Channels.TfsHttpRequestChannel.Request(TfsMessage 消息,TimeSpan 超时) 在 Microsoft.TeamFoundation.Client.Channels.TfsHttpClientBase.Invoke(TfsClientOperation 操作、Object[] 参数、TimeSpan 超时、Object[]& 输出) 在 Microsoft.TeamFoundation.Framework.Client.Registration.GetRegistrationEntries(字符串 toolId) 在 Microsoft.TeamFoundation.Framework.Client.RegistrationProxy.GetRegistrationEntries(字符串 toolId) 在 Microsoft.TeamFoundation.Framework.Client.RegistrationService.RefreshMemoryCache() 在 Microsoft.TeamFoundation.Framework.Client.RegistrationService.RefreshCachesIfNeeded( bool 直接) 在 Microsoft.TeamFoundation.Framework.Client.RegistrationService.GetRegistrationEntries(字符串 toolId) 在 Microsoft.TeamFoundation.Framework.Client.PreFrameworkServerDataProvider.FindServiceLocation(字符串 serviceType,字符串 toolId) 在 Microsoft.TeamFoundation.Framework.Client.PreFrameworkServerDataProvider.LocationForCurrentConnection(字符串服务类型,Guid 服务标识符) 在 Microsoft.TeamFoundation.Client.TfsConnection.EnsureProviderConnected() 在 Microsoft.TeamFoundation.Client.TfsConnection.EnsureAuthenticated()

我们不确定是什么导致它损坏。

最佳答案

您无法在 Azure 上使用旧的 TFS API,因为您需要在服务器上安装团队资源管理器。

但是,如果您对 TFS API 使用新的 Nuget 包(支持 TFS 2015 上的新 Rest API,以及 2012、2013 和 2015 的旧客户端 API)...

http://www.nuget.org/packages/Microsoft.TeamFoundationServer.ExtendedClient/

这将允许您从 Azure 连接到 TFS,而无需团队资源管理器...

关于azure - 错误 : The specified registry key does not exist. 尝试使用网络凭据连接到 TFS 2012。,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33665418/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com