Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

狀況

您使用 Visual Studio 最終 2013 RTM 連接到 Team Foundation Server (TFS) 2013年更新 4。假設您開啟視覺化 C# 或 Visual Basic 的檔案之前重新命名下列方式︰

  • 只有大小寫的檔案名稱已變更,例如,Filename.cs 與 filename.cs。

  • 在過去 12 個月中,重新命名檔案。這是預設值的索引變更歷程記錄的時間期間。請參閱CodeIndex 命令 ([indexHistoryPeriod] 設定)

在此情況下,您收到Microsoft.TeamFoundation.CodeSense.Server.WebAPI.CodeLensFileSummariesControllerBase.ReadFileSummaries,就會發生的 StackOverflowException 例外狀況,然後損毀動作會在 IIS 背景工作處理序"w3wp"的 TFS。

注意這項當機,會影響在 TFS 上目前所有的作業。然而,「 w3wp"的 IIS 背景工作處理序會自動重新啟動,而其他所有作業將會正確都執行,如果重新啟動。如果您嘗試重新連線 Visual Studio 最終 RTM 到 TFS,這會導致另一個的 StackOverflowException 例外狀況和損毀。

原因

因為當您在 Visual Studio 中開啟的程式碼檔案,則 Visual Studio 會詢問 TFS 如 CodeLens 的詳細資訊,就會發生這個問題。CodeLens 元件在 TFS 會造成 StackOverflowException 例外狀況,然後導致 TFS,不 Visual Studio 中的 IIS 背景工作處理序"w3wp"的損毀。

解決方案

若要解決這個問題,請套用 Visual Studio 2013年更新 2 或更新的更新從Visual Studio 的下載
您也可以升級與 Team Foundation Server 2013年更新 5 」 或 「 Team Foundation Server 2015 RTM TFS。使用從Visual Studio 的下載

因應措施

若要解決這個問題,請關閉在 Visual Studio 最終 2013 RTM CodeLens。移至工具>選項>文字編輯器>所有語言> CodeLens。

注意無效的解析度及因應措施] 區段中的選項,可以使用CodeIndex 命令,使用 TFSConfig 命令來關閉在 TFS 的 CodeLens。這是最不偏好的選項。

更多的資訊

為了幫助我們 CodeLens 更好的資訊,請傳送意見或要求功能在Visual Studio 的 UserVoice,或在MSDN 論壇中發問。

狀態

Microsoft 已確認這是<套用>一節所列出的 Microsoft 產品的問題。

Need more help?

Want more options?

探索訂閱權益、瀏覽訓練課程、瞭解如何保護您的裝置等等。

社群可協助您詢問並回答問題、提供意見反應,以及聆聽來自具有豐富知識的專家意見。

Was this information helpful?

How satisfied are you with the translation quality?
What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×