tfs - checkin 时 Visual Studio 崩溃

标签 tfs visual-studio-2013 checkin

当我每次尝试 checkin 待处理的更改时,我的 Visual Studio 2013 都崩溃了。我该如何解决?

崩溃日志:

System.UnauthorizedAccessException: Package 'SccProviderPackage' failed to load.
   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode)
   at Microsoft.VisualStudio.ErrorHandler.ThrowOnFailure(Int32 hr, Int32[] expectedHRFailure)
   at Microsoft.TeamFoundation.Git.Provider.ServiceProviderExtensionMethods.EnsurePackageLoaded(IServiceProvider serviceProvider, Guid packageGuid)
   at Microsoft.TeamFoundation.Git.Provider.ServiceProviderExtensionMethods.EnsureSccAndTfPackagesLoaded(IServiceProvider serviceProvider)
   at Microsoft.TeamFoundation.Git.Provider.Repositories.GitTeamProjectExtendedInfoProvider.set_ServiceProvider(IServiceProvider value)
   at Microsoft.VisualStudio.TeamFoundation.TeamExplorer.ConnectPage.ConnectPageVS.Initialize(Object sender, PageInitializeEventArgs e)
   at Microsoft.TeamFoundation.Controls.WPF.TeamExplorer.Framework.TeamExplorerPageHost.Initialize(TeamExplorerPageContext context)

最佳答案

我已经通过这些步骤修复了它;

清理客户端计算机上的缓存文件夹。文件夹路径为:C:\Users\username\AppData\Local\Microsoft\Team Foundation\5.0\Cache.
清理服务器机器上的缓存文件夹。文件夹路径为:C:\ProgramData\Microsoft\Team Foundation\Web Access\Cache_v11.0
清理干净后,在Server机器上,点击开始,选择运行...打开对话框,输入iisreset.exe并单击确定,等待它完全运行。

关于tfs - checkin 时 Visual Studio 崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23587666/

相关文章:

asp.net - 为什么.tfignore文件不忽略我的packages文件夹

c# - Visual Studio 2015 中的事件列表

visual-studio-2013 - 适用于桌面应用程序的 VS2013 Application Insight

android - 统计签到次数

Java程序签到定时器

tfs - 为什么构建草稿不合并/通知草稿发布时的合并冲突?

visual-studio - 让 Visual Studio 在每次构建时运行 T4 模板

tfs - 如何使用TFS 2010改进开发流程?

javascript - 网络驱动程序错误 : No active session with ID

tfs - 编写 TFS 命令行脚本,以编程方式获取最新版本、 checkout 和 checkin