I have last used Sourcetree on last Wed, 14Jun2023. Then since 19Jun. it has stopped launching with the following error found in sourcetree.log:
ERROR [2023-06-20 11:31:47,083] [1] [Sourcetree.Composition.VSMef.Net471.VSMefCompositionManager] [Log] - Unable to load MEF components
System.InvalidOperationException: Sequence contains no elements
at System.Linq.Enumerable.First[TSource](IEnumerable`1 source)
at Microsoft.VisualStudio.Composition.PartDiscovery.GetElementTypeFromMany(Type type)
at Microsoft.VisualStudio.Composition.RuntimeComposition.RuntimeImport.get_ImportingSiteTypeWithoutCollection
Hi @Pon Pricha
During windows update installation sometimes following cache files get corrupted and cause this issue: Assemblies.cache, Composition.cache
These files are present at following location: C:\Users\<User>\AppData\Local\Atlassian\SourceTree.exe_<random_string>\<version_number>
Deleting above 2 files can resolve the issue.
Sourcetree will regenerate these files when you re-run Sourcetree.
We have resolved this issue and it will be available in upcoming Sourcetree release (3.4.14) soon.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for answer. I just rename this directory to
a-SourceTree.exe_Url_rysqzdr4uh4oe0ulsneahvqamwjd0aec
Then it resolved. When launching, the new one is created with the same structure and files.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for answer. It works :-)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.