5

My Visual Studio 2013 is crashing when I trying to check in my pending changes everytime. How can I solve it?

Crash Log :

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)
Matas Vaitkevicius
  • 58,075
  • 31
  • 238
  • 265
Tugrul Emre Atalay
  • 918
  • 1
  • 9
  • 28

3 Answers3

5

I have fixed it with these steps;

Clean the Cache folder on client computer. The folder path is: C:\Users\username\AppData\Local\Microsoft\Team Foundation\5.0\Cache.

Clean the Cache folder on Server machine. The folder path is: C:\ProgramData\Microsoft\Team Foundation\Web Access\Cache_v11.0

After cleaned, on Server machine, click Start and select Run… to open the dialog box, then input iisreset.exe and click OK, wait it run completely.

Matas Vaitkevicius
  • 58,075
  • 31
  • 238
  • 265
Tugrul Emre Atalay
  • 918
  • 1
  • 9
  • 28
  • This helped me when Visual Studio was freezing whenever try to shelve files to TFS. Now, Visual studio again goes busy(freezes sometime) and does nothing whenever I try to add work item before checking-in! – FromHighHills Dec 10 '14 at 19:01
  • IT worked for the first time and then the problem returned. After some spelunking using procmon, I found out that the Git extension was faulting. so started devenv in safe mode and uninstalled the extension as well. – Kalyan Krishna May 18 '15 at 21:52
1

It looks like you are have a corrupted install of Visual Studio. You can try to 'repair' it from "Add/Remove Programs". If that does not work you are likely going to have to Uninstall and re-install.

You should get the latest binaries from http://www.microsoft.com/en-us/download/details.aspx?id=42666 o9r MSDN.

  • I have this problem and neither a repair nor an uninstall/reinstall fixes it - I write this to save anyone the trouble – PandaWood Mar 25 '15 at 03:55
0

I needed to delete my temp directory

C:\Users\username\AppData\Local\Temp

David Fidge
  • 451
  • 5
  • 6