46

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

Kira
  • 483
  • 1
  • 4
  • 10

8 Answers8

112

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.

Rooster
  • 1,221
  • 1
  • 4
  • 2
39

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.

Ajay
  • 18,086
  • 12
  • 59
  • 105
Toivo Säwén
  • 1,905
  • 2
  • 17
  • 33
8

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

MX D
  • 2,453
  • 4
  • 35
  • 47
6
  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

0
  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.

MG Developer
  • 859
  • 11
  • 17
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.

vSzemkel
  • 624
  • 5
  • 11