Suddenly, Visual Studio started showing this error at startup: "SccProviderPackage failed to load".
Also, the Team Explorer window stopped showing the proper section for Git.
I've repaired the installation, uninstalled/installed VS and restarted several times. NOTHING fixes the issue.
Please, notice that it's Visual Studio 2015 RC.
The activity log (ActivityLog.xml) says this:
The Team Explorer window shows this:
System.InvalidOperationException: Operation is not valid due to the current state of the object. at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo) 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)
I had this same issue, look in your [Appdata]\Roaming\Microsoft\VisualStudio\14.0\ActivityLog.xml for references to SccProviderPackage. Should give you the error info.
In my case it was trying to load an old folder location that apparently had a messed up repo. Removing that folder from the filesystem fixed it.
Running this command makes sure that all activity is logged:
C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE>Devenv /log
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With