Missed Team ’24? Catch up on announcements here.

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

SourceTree won't start - Unable to load MEF components

Sven Schuchmann June 14, 2023

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

106 votes
Answer accepted
Sven Schuchmann June 14, 2023

Deleting

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

helped!

Richard Jackson June 14, 2023

This worked for me too

Tomas Franco
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!
June 14, 2023

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!
June 14, 2023

Same issue for me and this worked. Thanks!

Oddvar Gjerde
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!
June 14, 2023

Very helpful for me too

Heidi Bickner June 14, 2023

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!
June 14, 2023

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

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

Like # people like this
Heidi Bickner June 14, 2023
Sven Schuchmann June 14, 2023

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

Like Pedro Erencia likes this
COMM_IT
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!
June 14, 2023

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!
June 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!
June 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
Michael Eacott
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!
June 15, 2023

Thanks for posting. This worked for me.

Chris Plenter June 15, 2023

Works! Thanks for the post!

Jordan Brobyn
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!
June 15, 2023

Worked for me

Liam Murphy
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!
June 15, 2023

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!
June 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!
June 16, 2023

Thanks, helped me too

arizagaander
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!
June 16, 2023

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!
June 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!
June 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!
June 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!
June 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!
June 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!
June 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!
June 19, 2023

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

Eric Yu
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!
June 19, 2023

It works for me too, thanks!

Paresh Awashank
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!
June 20, 2023

Worked for me.. thanks!!!

Darren Capner
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!
June 20, 2023

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!
June 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!
June 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!
June 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!
June 27, 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.

gmayer
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!
July 3, 2023

Thank you so much!!

Charles Benson
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!
October 23, 2023

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

charlesstanding
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!
April 23, 2024

This worked beautifully (on v 3.4.11). Thank you so much!

2 votes
Mukesh Kumar
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 23, 2023

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

2 votes
Harry Playfair
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!
June 16, 2023

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

Composition.cache

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

1 vote
Caleb Widmer
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!
June 14, 2023

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

1 vote
Richard Jackson June 14, 2023

I have the same issue

Sven Schuchmann June 14, 2023

Can you check my answer below helps?

Richard Jackson June 14, 2023

yes, its fixed

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!
August 13, 2023

Thank for you help♥

0 votes
Eric Bongaerts
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!
June 21, 2023

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!
June 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!
June 19, 2023

It works for me too. Thanks a lot!!

0 votes
Sean Lively June 16, 2023

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!
June 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