71

After successful download of source tree on windows 10 , the application doesn't seem to launch, Any help appreciated , Thanks

8 Answers 8

196

For me it was sufficient to delete the two Cache files

  • Assemblies.cache
  • Composition.cache

in

C:\Users\<User>\AppData\Local\Atlassian\SourceTree.exe_<random_string>\<version_number>

That way I didn't need to reinstall or reconfigure my Sourcetree.

12
  • 7
    That helped for me. Files were recreated on the next start and app is working again
    – hansmaad
    Commented Jun 16, 2023 at 7:27
  • 7
    Also for me. I see we've all commented recently to this very old thread. For me, I suspect that recent monthly update to Windows 11 (June 23) is the culprit. Commented Jun 17, 2023 at 6:41
  • 3
    I'm one of the lucky people to get this answer, I didn't reinstall Sourcetree. Terima kasih :) Commented Jun 18, 2023 at 16:31
  • 3
    This was the issue in my case. Commented Jun 19, 2023 at 0:10
  • 2
    That helped me. Very simple solution. Thank you.
    – Uni
    Commented Jun 19, 2023 at 8:34
44

This solved the issue for me.

Cause

The most likely reason for this error is that the user.config file for SourceTree has been corrupted. You can confirm this by locating the file in this location: C:\Users\<User>\AppData\Local\Atlassian\SourceTree.exe_<random_string>\<version_number>

If this is the cause, when you open the file, it will be full of <NULL> values.

Resolution

If the user.config file is indeed corrupted, you may delete it. It will be regenerated the next time you start SourceTree, and the application should start normally.

7
  • 1
    great answer. Thanks Commented Mar 30, 2017 at 14:09
  • 2
    Thanks for the answer! In my case I had several different such folders with many previous version numbers within them. Located the one with the latest version number - the user.config file within looked normal and not corrupt. However I renamed it to backup SourceTree.exe_<random_string> and this did the job. Commented Jul 28, 2017 at 10:17
  • 6
    Still works in 2023 as a work around. It's unfortunate that these files are still getting corrupted.
    – shawn1874
    Commented Jun 14, 2023 at 16:49
  • 2
    @shawn1874 something must have broken in the past few days cause this answer is suddenly getting massive attention. Interesting. Commented Jun 17, 2023 at 15:37
  • 1
    I came back to this answer several times and it always saves my day... I hate that there is no error msg or anything that would just say cache or something so that it will click in the brain to know what is wrong Commented Jun 12 at 9:07
7

Without providing the SourceTree errorlog nobody will really be able to tell you how to resolve this issue.

The Sourcetree errorlog can be found at C:\Users\<username>\AppData\Local\Atlassian\SourceTree\sourcetree.log on windows.

Or by opening the Console application (Applications >> Utilities >> Console) and searching for entries related to "SourceTree", on mac.

The 2 most common fixes however are:

  • Re-install Source tree.
  • Delete the C:\Users\%user%\AppData\Local\Atlassian folder

Sourcetree.log

1
  • 2
    Thanks, this did it for me: Delete the C:\Users\%user%\AppData\Local\Atlassian folder Commented Oct 14, 2022 at 7:38
7
  1. Check the logs of sourcetree which is placed in %AppData\Local\Atlassian\SourceTree

  2. In my case it was: ERROR [2023-06-15 14:07:37,286] [1] [Sourcetree.Composition.VSMef.Net471.VSMefCompositionManager] [Log] - Unable to load MEF components System.InvalidOperationException: Sequence contains no elements....

  3. Solution: Delete file which is located in the following path: %AppData\Local\Atlassian\SourceTree.exe_Url_some_random_value\here should be your version of source tree in my case it was 3.4.5.0\Composition.cache

3

I just needed to start the installer. After running it, SourceTree just opens again. No installation was triggered. Afterwards it opens again without any problems. Version 3.4.13

1
  1. Uninstall .Net 4.5 Or your current .Net version
  2. Install SourceTree 2.4.7.0 (Sourcetree installation will install .Net Again for you).

Note: I tried Atlassian recommendations such as deleting \Users{UserId}\AppData\Local\SourceTree as well as \Users{UserId}\AppData\Local\Atlassian. Also tried Deleting entries from Windows Registry none of those things helped.

0

If the banner flashes for couple of seconds and then gone, you need to update the user.config file. It happened after the windows update. go to sourcetree path: C:\users\admin\AppData\local\Atlasian\SourceTree.exe\3.4.11.0\

delete all the contents inside this folder and restart the source tree.

Ps: it is always good to have backup

0

For me the problem was the change of installation location between versions of SourceTree.
As of 3.4.14 it is in \AppData\Local\SourceTree
and not in \Program Files (x86)\Atlassian\SourceTree.

Not the answer you're looking for? Browse other questions tagged or ask your own question.