- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
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/
我正在开发一个 voip 调用应用程序。我需要做的是在接到来电时将 Activity 带到前台。我在应用程序中使用 Twilio,并在收到推送消息时开始调用。 问题是我试图在接到任何电话时显示 Act
我是一名优秀的程序员,十分优秀!