Tfs 签入时Visual Studio崩溃

Tfs 签入时Visual Studio崩溃,tfs,visual-studio-2013,checkin,Tfs,Visual Studio 2013,Checkin,每次尝试签入挂起的更改时,我的Visual Studio 2013都会崩溃。我怎样才能解决它 事故日志: System.UnauthorizedAccessException: Package 'SccProviderPackage' failed to load. at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo) at Sy

每次尝试签入挂起的更改时,我的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)

看起来您的Visual Studio安装已损坏。您可以尝试从“添加/删除程序”中“修复”。如果这不起作用,您可能需要卸载并重新安装


您应该从o9r MSDN获得最新的二进制文件。

我已经通过以下步骤修复了它

清除客户端计算机上的缓存文件夹。文件夹路径为:
C:\Users\username\AppData\Local\Microsoft\Team Foundation\5.0\Cache。

清理服务器计算机上的缓存文件夹。文件夹路径为:
C:\ProgramData\Microsoft\Team Foundation\Web Access\Cache\u v11.0


清理后,在服务器计算机上,单击开始并选择运行…打开对话框,然后输入
iisreset.exe
,然后单击确定,等待它完全运行。

我需要删除我的临时目录


<用户>用户名\AppDATAB\Stound\Time

验证最新更新是否已安装(更新1),并更具体地说明VisualStudio CRASESI不知道如何更具体,因为当尝试连接Team Foundation Server时崩溃。并验证正在使用的TFS服务器的版本以及visual studio 2013(更新1或2)的更新级别。也许此编辑是正确的:)VS update 2当visual studio冻结时,每当尝试将文件搁置到TFS时,这对我很有帮助。现在,每当我在签入之前尝试添加工作项时,VisualStudio再次变得繁忙(有时会冻结),并且什么也不做!它第一次起作用,然后问题又出现了。在使用procmon进行了一些探索之后,我发现Git扩展是有缺陷的。因此,在安全模式下启动devenv并卸载了扩展。我有这个问题,无论是修复还是卸载/重新安装都无法修复它-我写这篇文章是为了省去任何人的麻烦