TFS 在客户端无法连接
显示: HTTP code 503: TF30059: Fatal error while initializing web service
在tfs服务器查看事件,显示如下错误:
F53010: Team Foundation 组件中发生了意外情况。应将此处包含的信息提供给您的站点管理人员。
技术信息(供管理人员使用):异常消息: 密钥集不存在。
(类型 CryptographicException)
异常堆栈跟踪: 在 System.Security.Cryptography.CryptographicException.ThrowCryptogaphicException(Int32 hr)
在 System.Security.Cryptography.SafeProvHandle._FreeCSP(IntPtr pProvCtx)
在 System.Security.Cryptography.SafeProvHandle.ReleaseHandle()
在 System.Runtime.InteropServices.SafeHandle.InternalDispose()
在 System.Runtime.InteropServices.SafeHandle.Dispose(Boolean disposing)
在 System.Runtime.InteropServices.SafeHandle.Dispose()
在 System.Security.Cryptography.RSACryptoServiceProvider.Dispose(Boolean disposing)
在 System.Security.Cryptography.AsymmetricAlgorithm.System.IDisposable.Dispose()
在 Microsoft.TeamFoundation.VersionControl.Server.Proxy.RequestSignatures.GenerateNewPrivateKey(Int32 keyLength)
在 Microsoft.TeamFoundation.VersionControl.Server.AdministrationManager.GenerateRepositoryKey(Int32 keyLength)
在 Microsoft.TeamFoundation.VersionControl.Server.Global.Initialize()
MSDN查到解决方案:
http://msdn2.microsoft.com/en-us/library/ms400681(VS.80).aspx
To correct this error, confirm that the Proxy Service account has the Full Control permission set to Allow on the RSA Machine Key folder in the Documents and Settings folder (for example, C:\Documents and Settings\All Users\Application Data\Microsoft\Crypto\RSA).