在安裝設定Release Management for Visual Studio 時 發生Object Already exists時應如何處理?

  • 477
  • 0

摘要:在安裝設定Release Management for Visual Studio 時 發生Object Already exists時應如何處理?

在安裝設定Release Management for Visual Studio 時 若發生錯誤

 

打開安裝Log檔後  若最後是Object Already exists 如下:

 

I, 2014/10/29, 08:18:40.108, Variable : Key = DefaultLogin, Value = GAP-RELEASE\BuildUser
I, 2014/10/29, 08:18:40.124, Variable : Key = DefaultAdmin, Value = GAP-RELEASE\BuildUser
I, 2014/10/29, 08:18:40.124, Variable : Key = DatabaseName, Value = ReleaseManagement
I, 2014/10/29, 08:18:40.124, Variable : Key = DefaultLocalService, Value = NT AUTHORITY\LOCAL SERVICE
I, 2014/10/29, 08:18:53.384, Database ReleaseManagement, version 12.0.30723.0 was installed successfully.
I, 2014/10/29, 08:18:53.399, Created Release Management database.
E, 2014/10/29, 08:18:53.462, Received Exception : System.Security.Cryptography.CryptographicException: Object already exists.

   at System.Security.Cryptography.CryptographicException.ThrowCryptographicException(Int32 hr)
   at System.Security.Cryptography.Utils._CreateCSP(CspParameters param, Boolean randomKeyContainer, SafeProvHandle& hProv)
   at System.Security.Cryptography.Utils.CreateProvHandle(CspParameters parameters, Boolean randomKeyContainer)
   at System.Security.Cryptography.Utils.GetKeyPairHelper(CspAlgorithmType keyType, CspParameters parameters, Boolean randomKeyContainer, Int32 dwKeySize, SafeProvHandle& safeProvHandle, SafeKeyHandle& safeKeyHandle)
   at System.Security.Cryptography.RSACryptoServiceProvider.GetKeyPair()
   at Microsoft.TeamFoundation.Release.CommonConfiguration.Helpers.CryptoHelper.ConfigureServerCryptoKey(String serverName, String databaseName)
   at Microsoft.TeamFoundation.Release.Configuration.ConfigurationManager.Configure(ConfigurationUpdatePack updatePack, DelegateStatusUpdate statusListener)
   at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)
I, 2014/10/29, 08:18:53.462, Work completed for GetConfiguration() call : got out of turn error
E, 2014/10/29, 08:18:53.462, Object already exists

 

此時應為安裝帳號對C:\Users\All Users\Microsoft\Crypto\RSA\MachineKeys沒有存取權限的問題

可使用檔案總管重新設定權限給安裝帳號即可

 

參考網址:

http://stackoverflow.com/questions/26630487/release-management-server-installation-issue-object-already-exists

 

風來疏竹,風過而竹不留聲;雁度寒潭,雁去而潭不留影。故君子事來而心始現,事去而心隨空。