摘要:安裝TFS 2012 Update 1 後若出現之前建立的Team專案安全性設定有問題如何處理?
2013/03/15 Update:
安裝Cumulative Update 1 for Visual Studio Team Foundation Server 2012 Update 1後
有可能造成整個Team Collection會無法啟用
建議先不要安裝
等下一個更新update2 或者service pack再安裝
或者安裝前要進行完整備份
當安裝完畢TFS 2012 Update 1以後
會發現之前建立的Team專案無法設定安全性
進一步查看事件檢視器
會發現
TF30065: 發生未處理的例外狀況。
內容如下:
詳細訊息: TF30065: 發生未處理的例外狀況。
Web 要求詳細資料
URL: http://tfs2012server:8080/tfs/TeamCollection/TeamProject/_api/_identity/ReadScopedGroupsJson?__v=1 [方法: GET]
使用者代理程式: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.2; WOW64; Trident/6.0; .NET4.0E; .NET4.0C; .NET CLR 3.5.30729; .NET CLR 2.0.50727; .NET CLR 3.0.30729)
標頭: Connection=Keep-Alive&Accept=application%2fjson%2c+text%2fjavascript%2c+*%2f*%3b+q%3d0.01&Accept-Encoding=gzip%2c+deflate&Accept-Language=zh-TW&Cookie=__RequestVerificationToken_L3Rmcw2%3dOfZVAS0KN8uDB6ZCEGYGCODbAk311gLZL2fTERsd7PyO4FelPlJXzap0fVIl0mC5wu_fYc1vJ2ZIaaxPORYqo91JSJDl-NB6AxiNY2cjGwUiPhsYQly3G_BdaP8e6W1CLSS0rg2%3b+__RequestVerificationToken20a3891fd-3f0c-4055-ac7a-e966f00979de%3dOfZVAS0KN8uDB6ZCEGYGCODbAk311gLZL2fTERsd7PyO4FelPlJXzap0fVIl0mC5wu_fYc1vJ2ZIaaxPORYqo91JSJDl-NB6AxiNY2cjGwUiPhsYQly3G_BdaP8e6W1CLSS0rg2&Host=tfs.mentortrust.com%3a8080&Referer=http%3a%2f%2ftfs.mentortrust.com%3a8080%2ftfs%2fMentortrust%2fTeamALM%2f_admin%2f_security&User-Agent=Mozilla%2f4.0+(compatible%3b+MSIE+7.0%3b+Windows+NT+6.2%3b+WOW64%3b+Trident%2f6.0%3b+.NET4.0E%3b+.NET4.0C%3b+.NET+CLR+3.5.30729%3b+.NET+CLR+2.0.50727%3b+.NET+CLR+3.0.30729)&X-Requested-With=XMLHttpRequest
路徑: /tfs/TeamCollection/TeamProject/_api/_identity/ReadScopedGroupsJson
本機要求: True
主機位址: 192.168.1.6
使用者: CORP\Administrator [驗證類型: NTLM]
例外狀況訊息: 無法比較陣列中的兩個元素。 (型別 InvalidOperationException)
例外狀況堆疊追蹤: 於 System.Collections.Generic.ArraySortHelper`1.Sort(T[] keys, Int32 index, Int32 length, IComparer`1 comparer)
於 System.Array.Sort[T](T[] array, IComparer`1 comparer)
於 Microsoft.TeamFoundation.Server.WebAccess.Admin.ApiIdentityController.ReadScopedGroupsJson(String lastSearchResult, String searchQuery, Nullable`1 pageSize)
於 lambda_method(Closure , ControllerBase , Object[] )
於 System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters)
於 System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters)
於 System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass42.<BeginInvokeSynchronousActionMethod>b__41()
於 System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass37.<>c__DisplayClass39.<BeginInvokeActionMethodWithFilters>b__33()
於 System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49()
於 System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49()
於 System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49()
於 System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49()
於 System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49()
於 System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass37.<BeginInvokeActionMethodWithFilters>b__36(IAsyncResult asyncResult)
於 System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass25.<>c__DisplayClass2a.<BeginInvokeAction>b__20()
於 System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass25.<BeginInvokeAction>b__22(IAsyncResult asyncResult)
於 System.Web.Mvc.Controller.<>c__DisplayClass1d.<BeginExecuteCore>b__18(IAsyncResult asyncResult)
於 System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar)
於 System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult)
於 System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar)
於 System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult)
於 System.Web.Mvc.MvcHandler.<>c__DisplayClass8.<BeginProcessRequest>b__3(IAsyncResult asyncResult)
於 System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar)
於 System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult)
於 System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
於 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
內部例外狀況詳細資料:
例外狀況訊息: 並未將物件參考設定為物件的執行個體。 (型別 NullReferenceException)
例外狀況堆疊追蹤: 於 Microsoft.TeamFoundation.Framework.Server.IdentityDisplayNameComparer.Compare(TeamFoundationIdentity x, TeamFoundationIdentity y)
於 System.Collections.Generic.ArraySortHelper`1.SwapIfGreater(T[] keys, IComparer`1 comparer, Int32 a, Int32 b)
於 System.Collections.Generic.ArraySortHelper`1.DepthLimitedQuickSort(T[] keys, Int32 left, Int32 right, IComparer`1 comparer, Int32 depthLimit)
於 System.Collections.Generic.ArraySortHelper`1.Sort(T[] keys, Int32 index, Int32 length, IComparer`1 comparer)
解決方式為安裝Cumulative Update 1 for Visual Studio Team Foundation Server 2012 Update 1(下載)
風來疏竹,風過而竹不留聲;雁度寒潭,雁去而潭不留影。故君子事來而心始現,事去而心隨空。