Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

SourceTree won't start - Unable to load MEF components

Edited

Hi,

I am using SourceTree Enterprise 3.4.13.0 on Windows 10.
After a Windows Update Today it does not start anymore.
Only see splash screen then it closes.
Tried uninstalling Reinstalling, nothing helped.

In the SourceTree.log I see this error:

ERROR [2023-06-14 09:23:59,047] [1] [Sourcetree.Composition.VSMef.Net48.VSMefCompositionManager] [Log] - Unable to load MEF components
System.InvalidOperationException: Die Sequenz enthält keine Elemente.
bei System.Linq.Enumerable.First[TSource](IEnumerable`1 source)
bei Microsoft.VisualStudio.Composition.PartDiscovery.GetElementTypeFromMany(Type type)
bei Microsoft.VisualStudio.Composition.RuntimeComposition.RuntimeImport.get_ImportingSiteTypeWithoutCollection()
bei Microsoft.VisualStudio.Composition.RuntimeComposition.RuntimeImport.get_IsLazy()
bei Microsoft.VisualStudio.Composition.RuntimeComposition.RuntimeImport.get_LazyFactory()
bei Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.GetValueForImportSite(RuntimePartLifecycleTracker importingPartTracker, RuntimeImport import)
bei Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.RuntimePartLifecycleTracker.SatisfyImports()
...

Can anyone help?

 

 

10 answers

1 accepted

Deleting

%LOCALAPPDATA%\Atlassian\SourceTree.exe_<UID>\3.4.13.0\Assemblies.cache
%LOCALAPPDATA%\Atlassian\SourceTree.exe_<UID>\3.4.13.0\Composition.cache

helped!

This worked for me too

Thank you so much glad someone was able to solve this.

Kevin Henderson
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
Jun 14, 2023

Same issue for me and this worked. Thanks!

Very helpful for me too

Very helpful. Thanks for posting!

Jachin Collins
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
Jun 14, 2023

FYI - On my machine, the files were located under the Atlassian folder:

%LOCALAPPDATA%\Atlassian\SourceTree.exe_<UID>\<Version>\

Like # people like this

@Jachin Collins Correct, I fixed that in my answer.

Like Pedro Erencia likes this

Worke for me as well, thanks!

양기탁
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
Jun 14, 2023

고맙습니다. 덕분에 해결 했습니다!

FrogsInSpace
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
Jun 14, 2023

Seems that this issue reappears and the above fix has to be applied repeatetly
So i downgraded to 3.4.12 and the issue is gone

Seems to be some deeper issue with the 3.4.13 version

Like 杨秋林 likes this

Thanks for posting. This worked for me.

Works! Thanks for the post!

Worked for me after this weeks regular windows update that I declined but somehow it was applied regardless. For what its worth these are the folders in which I needed to delete those files:

C:\Users\**me**\AppData\Local\Atlassian\SourceTree.exe_Url_re5thcoffnnkdlp540ilqzrn33oj41rm\3.4.3.0

C:\Users\**me**\AppData\Local\Atlassian\SourceTree.exe_Url_n3rdypildipi022uybkie3xafvtaqehx\3.4.8.0

Like # people like this
Andrew Neil
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
Jun 16, 2023

Worked here too! Awesome!

Patrik Foldes
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
Jun 16, 2023

Thanks, helped me too

Same problem. Solution works like a charm

 

Thanks!

Samantha Roderigues
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
Jun 16, 2023

worked for me too thanks!

Ravichandran M Kaushika
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
Jun 16, 2023

Worked for me - thanks a bunch.

Teddy Saputra
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
Jun 18, 2023

Worked perfectly thanks!

Joel Blake
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
Jun 19, 2023

Worked for me!

oksana_vovere
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
Jun 19, 2023

Thanks! 

Prashanth Bala
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
Jun 19, 2023

Thanks, that worked for me!

Ivan Lopez
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
Jun 19, 2023

It works for me too. Thanks a lot!!!!

It works for me too, thanks!

Worked for me.. thanks!!!

This worked for me. Thanks!

Qreesna
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
Jun 20, 2023

Thanks. It works!

Martí Pàmies Solà
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
Jun 22, 2023

Thks so much. it works

Like Qreesna likes this
FerneyMartinez
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
Jun 22, 2023

Thanks so much. It worked like a charm!!

jszbps
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
Jun 27, 2023 • edited Jul 21, 2023

This worked!

"Unable to load MEF components" is not a bug, it's a feature! This happens so frequently it's disturbing why developers do not fix this or auto-remediate for this issue. Incredibly frustrating when this happens.

EDIT: Got tired of this issue happening so often, even on latest version at time of writing, so I stopped using Atlassian SourceTree altogether and started using something else.

Thank you so much!!

Thank you so very much!  A big relief. Thank you.

2 votes
Mukesh Kumar
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Jun 23, 2023 • edited Jul 06, 2023

We have fixed this issue in Sourcetree 3.4.14 and is available for upgrade.

Exact same issue here, deleting the single file solved it:

Composition.cache

However, the problem has recurred twice - will we see a fix soon?

came here same reason,
thanks for the work arounds.
Uninstall/reinstall seems to work at least from SourceTree-3.4.8 to 3.4.13

I have the same issue

Can you check my answer below helps?

0 votes
zsw
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
Aug 13, 2023

Thank for you help♥

Works for me as well. Thnx!

0 votes
Radek Havelka
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
Jun 19, 2023

had the same issue, deleting the files helped, thanks !

0 votes
Ivan Lopez
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
Jun 19, 2023

It works for me too. Thanks a lot!!

My entire team got bit by this bug after recent windows updates.

StuartWhiting
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
Jun 21, 2023

same thing happened here. glad to find this post quickly.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events