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

Source Tree for Windows does not start

Felix
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 7, 2013

Hello,

after successfully using Source Tree for Windows ca. 2 weeks it suddenly doesn't start:

PLATFORM VERSION INFO
	Windows 			: 6.1.7601.65536 (Win32NT)
	Common Language Runtime 	: 4.0.30319.18034
	System.Deployment.dll 		: 4.0.30319.17929 built by: FX45RTMREL
	clr.dll 			: 4.0.30319.18034 built by: FX45RTMGDR
	dfdll.dll 			: 4.0.30319.17929 built by: FX45RTMREL
	dfshim.dll 			: 4.0.41209.0 (Main.041209-0000)

SOURCES
	Deployment url			: file:///C:/Users/MYACCOUNT/Desktop/SourceTree.appref-ms%7C

ERROR SUMMARY
	Below is a summary of the errors, details of these errors are listed later in the log.
	* Activation of C:\Users\MYACCOUNT\Desktop\SourceTree.appref-ms| resulted in exception. Following failure messages were detected:
		+ Value does not fall within the expected range.

COMPONENT STORE TRANSACTION FAILURE SUMMARY
	No transaction error was detected.

WARNINGS
	There were no warnings during this operation.

OPERATION PROGRESS STATUS
	* [08.04.2013 15:56:24] : Activation of C:\Users\MYACCOUNT\Desktop\SourceTree.appref-ms| has started.
	* [08.04.2013 15:56:24] : Performing necessary update check as specified by the deployment.

ERROR DETAILS
	Following errors were detected during this operation.
	* [08.04.2013 15:56:24] System.ArgumentException
		- Value does not fall within the expected range.
		- Source: System.Deployment
		- Stack trace:
			at System.Deployment.Application.NativeMethods.CorLaunchApplication(UInt32 hostType, String applicationFullName, Int32 manifestPathsCount, String[] manifestPaths, Int32 activationDataCount, String[] activationData, PROCESS_INFORMATION processInformation)
			at System.Deployment.Application.ComponentStore.ActivateApplication(DefinitionAppId appId, String activationParameter, Boolean useActivationParameter)
			at System.Deployment.Application.SubscriptionStore.ActivateApplication(DefinitionAppId appId, String activationParameter, Boolean useActivationParameter)
			at System.Deployment.Application.ApplicationActivator.Activate(DefinitionAppId appId, AssemblyManifest appManifest, String activationParameter, Boolean useActivationParameter)
			at System.Deployment.Application.ApplicationActivator.ProcessOrFollowShortcut(String shortcutFile, String& errorPageUrl, TempFile& deployFile)
			at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
			at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)

COMPONENT STORE TRANSACTION DETAILS
	No transaction information is available.

Thanks in advance for helpful comments or a solution.

35 answers

1 accepted

5 votes
Answer accepted
stevestreeting
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 7, 2013

Hmm, that's an odd one. Please go to Control Panel > Programs > Uninstall a program, click SourceTree and then Uninstall / Change. Please remove SourceTree from your system, then re-install from sourcetreeapp.com. Note that you may have to reinstate your global options if you changed them from the default but your bookmarks and repository settings will be retained.

Felix
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 8, 2013

Did work, thanks.

Juanma15
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!
May 31, 2016

Hi Steve, I'm using SourceTree but sudenly I can`t open the program. I click on it but nothing happend. I have already unistalled the program and installed again but with the same result.

What can I do to solve this problem? I have Windows 8.1.

 

Thank you.

Like Shohair Sajid likes this
idurvesh May 31, 2016

Same happening here from yesterday

PM_DEV
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!
May 31, 2016

What worked for me: "Start programm as administrator."

But why does sourcetree need admin-rights?

 

david_giraldo
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!
January 30, 2017

So, each time it happens Must I have to re install it? what a terrible software!!!!

Like atom888 likes this
david_giraldo
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!
January 30, 2017

A good software must not have that kind of trouble.

 

Like atom888 likes this
Nathan Tregillus
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!
May 30, 2017

I have now used this solution of uninstalling and reinstalling three times in the last month. Has anyone found why this occurs?

 

Like atom888 likes this
chris_trinder
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 3, 2017

This is happening to me today. Just can't launch the programme. Will try uninstalling it and installing it again, but along with it slowing right down and with the introduction of a few recent glitches, maybe it's time to find another option. Shame as it used to be really good. I hope they can get the development back on track and get it working properly again.

sergekol
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 9, 2017

I cant start too. Uninstalled. Try to install

ERROR [2017-10-10 06:53:17,136] [1] [SourceTree.App] [SetStartupJIT] - Startup JIT encountered an error...
System.Configuration.ConfigurationErrorsException: ".", шестнадцатеричное значение 0x00, является недопустимым знаком., строка 15, позиция 1. (C:\Users\Сергей\AppData\Local\Atlassian\SourceTree.exe_Url_vugdgboj5l2cs54bjhbr22ckg0ujbphh\2.3.1.0\user.config line 15) ---> System.Xml.XmlException: ".", шестнадцатеричное значение 0x00, является недопустимым знаком., строка 15, позиция 1.
в System.Xml.XmlTextReaderImpl.Throw(Exception e)
в System.Xml.XmlTextReaderImpl.ParseText(Int32& startPos, Int32& endPos, Int32& outOrChars)
в System.Xml.XmlTextReaderImpl.ParseText()
в System.Xml.XmlTextReaderImpl.ParseElementContent()
в System.Xml.XmlTextReaderImpl.Skip()
в System.Configuration.XmlUtil.StrictSkipToNextElement(ExceptionAction action)
в System.Configuration.BaseConfigurationRecord.ScanSectionsRecursive(XmlUtil xmlUtil, String parentConfigKey, Boolean inLocation, String locationSubPath, OverrideModeSetting overrideMode, Boolean skipInChildApps)
в System.Configuration.BaseConfigurationRecord.ScanSectionsRecursive(XmlUtil xmlUtil, String parentConfigKey, Boolean inLocation, String locationSubPath, OverrideModeSetting overrideMode, Boolean skipInChildApps)
в System.Configuration.BaseConfigurationRecord.ScanSections(XmlUtil xmlUtil)
в System.Configuration.BaseConfigurationRecord.InitConfigFromFile()
--- Конец трассировки внутреннего стека исключений ---
в System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean ignoreLocal)
в System.Configuration.BaseConfigurationRecord.ThrowIfParseErrors(ConfigurationSchemaErrors schemaErrors)
в System.Configuration.Configuration..ctor(String locationSubPath, Type typeConfigHost, Object[] hostInitConfigurationParams)
в System.Configuration.ClientConfigurationHost.OpenExeConfiguration(ConfigurationFileMap fileMap, Boolean isMachine, ConfigurationUserLevel userLevel, String exePath)
в System.Configuration.ConfigurationManager.OpenExeConfigurationImpl(ConfigurationFileMap fileMap, Boolean isMachine, ConfigurationUserLevel userLevel, String exePath, Boolean preLoad)
в SourceTree.App.SetStartupJIT()

After trying to install user_config.xml is:

user_config.png

sergekol
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 9, 2017

I saved files accounts.json, bookmarks.xml, passwd

Uninstalled

Droped /Users/User_name/AppData/Local/Atlassian

Installed

Replaced files, see above

I seems to me, that SourceTree works

 

May be it will help to users

Like atom888 likes this
drazennis
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 25, 2017

Thank you.

Only deleting of /Users/User_name/AppData/Local/Atlassian folder helped me to be able to reinstall SourceTree. For some reason, this folder got in a corrupted state or similar.

Like # people like this
Juan S. Orozco
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!
February 27, 2018

it was really helpfull. Thanks. Gracias!

Nitin Sapre
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, 2018

Hi @sergekol,

This Trick work for me. But the fact is user should not face this type of issue for the software like sourcetree.

 

Thanks&Regards,

Nitin

Like atom888 likes this
2xlbu4u
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!
September 18, 2018

I deleted Users\<myname>\AppData\Local\Atlassian\SourceTree\cache folder.

That did the trick for me

Like # people like this
atom888 August 18, 2020

Another user posted this solution:
https://community.atlassian.com/t5/Sourcetree-questions/Sourcetree-user-settings-must-be-repaired-constantly/qaq-p/895450

This happens to me a lot as well -- any time Sourcetree quits abnormally (like when Windows decides to force an update and kill all your work when you're not around). My workaround on Windows 10 has been:

* After you have reset things and fixed up your Sourcetree preferences, make a backup of your current user.config file. On Windows 10 it's located at: C:\Users\<username>\AppData\Local\Atlassian\SourceTree.exe<random_string>\<version_number>\user.config

* Save that user.config file somewhere else on your hard drive

* Next time you get the "Sourcetree user settings must be repaired" error, copy that saved file back into C:\Users\<username>\AppData\Local\Atlassian\SourceTree.exe<random_string>\<version_number>\user.config to replace the corrupted file.

Sourcetree should run again after that.

30 votes
Deleted user May 4, 2015

Clearing out my C:\Users\%USERNAME%\AppData\Local\Atlassian\SourceTree\ directory did the trick for me!

Morgan Yarbrough
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 5, 2015

This worked for me on Windows 10 x64 except I also had to clear the SoureTree[long hash] directory

Theodore Rand
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 14, 2016

Much appreciated!

nphp101
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!
September 8, 2016

You saved my hours!!!! MANY THANKS!!!

Like developer.anum likes this
eramos_bol
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 3, 2016

Thanks  Christian, this saved me some time as well. 

Sergii Karanda
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 28, 2016

Thank You!

Sankalp Suryawanshi
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!
November 29, 2016

This helped me too! To reach there I just type %appdata% on run window and deleted every folder under SourceTree because of which mymapped repositories went off, but which was easy to restore. Thanks a lot!

Alex Perevalov
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!
January 2, 2017

yep, worked for me as well, and after the app was launched i copied everything back and got all my settings back as well

Willian Sousa
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 5, 2017

It worked for me... Thank you!

Sri Phani
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 8, 2017

Hi,

I am using windows 7, where I am not able to find out User\AppData\Local|Atlassian

 

Could you please help me out of this.

 

Thanks,

Sri

Sietse van der Laan
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, 2017

That worked! Thanks!

sylvain Muk.
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 19, 2017

Thanks

cyclion
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!
September 18, 2017

Hooray! Source Tree launched!!!
ST.png

quinn.zhao
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!
September 18, 2017

I had no this setup

Duong Van Khuong
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 24, 2017

Thanks you. it worked for me.

dvburns
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 18, 2018

Still working as a solution - remember to delete the SourceTree_XXXXXX directories if they exist also.

hassibrahim
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 12, 2018

sourcetree.log is used by another application and cannot be deleted ! Any ideas?

16 votes
Daniel Eskenazi
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 1, 2016

I had the same issue. It got solved by doing the following:

1) uninstall and reinstall

2) Delete the folder C:\Users\yourusername\AppData\Local\Atlassian\SourceTree.exe_Url_yjhzxxhcu2ommegrdorjf3q1oqllqxiq

 

Of course the folder will be under your username and the folder name will different but it should look similar.

Juanma15
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 1, 2016

Thank you Daniel, I have solved the problem doing exactly the same.

gusthavosouza
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 28, 2016

Thanks this worked for me too

Josephine Medel
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 11, 2016

Thank you! This worked for me but in addition, I also cleared what was in the "SourceTree" folder as well under the 'C:\Users\yourusername\AppData\Local\Atlassian\'. I just wanted to note that the thing that actually got it to work was Daniel's step 2.

ofranco
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!
May 17, 2017

Works for me too. Thanks.

Hasan Ali
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 19, 2017

Worked like a charm.Only deleting the directory solved the issue.Thanks.

Alistair.Hann
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!
September 18, 2017

Perfect - worked for me. thank you.

mredman September 25, 2017

I cannot run Sourtree, wouldn't start, uninstalled, removed all folders, now I cannot install it? Windows 10? Annoying and really need to get on with work.

matthew farwell
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!
September 27, 2017

I had been using Sourcetree and then this week it stopped.  It would never launch.  I've uninstalled, removed all the files, and attempted to reinstall.  The installer flashes one small logo box and that is it.  It seems like it might fail.  The result is a desktop shortcut that does nothing.  I am running Windows 10 x64.

toan_pham82
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!
March 30, 2020

I got the issue and resolve it by delete user.config under 

 C:\Users\yourusername\AppData\Local\Atlassian\SourceTree.exe_[GUID].

 

Another way, I installed an older version (sourcetree-setup2.5.5) and completed installation. I then upgraded it to the latest (sourcetree-setup3.3.8). It works well

3 votes
Dmitri Peredera October 9, 2017

I have the same problem. SourceTree won't start.

Tried all of the solutions above, except of re-installing .Net.

Removed C:\Users\users\AppData\Local\Atlassian\ folder and uninstalled SourceTree.

Now even the installer won't run.

I does show the initial sourceTree icon during the installation and then it quits. Start menu icon is created anyway, but when I press it nothing happens.

I am not getting any exceptions or other messages.

sourcetree.log contains this message:

ERROR [2017-10-09 09:59:41,061] [1] [SourceTree.App] [.ctor] - finish EnsureSquirrelExecutionStubIsCopied
ERROR [2017-10-09 09:59:41,199] [1] [SourceTree.App] [OnStartup] - Failed to start
System.NullReferenceException: Objektreferensen har inte angetts till en instans av ett objekt.
   vid SourceTree.Notifications.NotificationsManager.SetOwner(NotificationDialogWindow notificationWindow)
   vid SourceTree.Notifications.NotificationsManager.ShowNotificationDialog[T](NotificationDialogWindow notificationWindow, Tuple`2 customAction, VistaTaskDialogIcon icon)
   vid SourceTree.Notifications.NotificationsManager.ShowNotificationDialog[T](String title, String message, Tuple`2 customAction, String cancelLabel, String suppressionSetting, Action`1 suppressionChangedAction, Object contentControl, String contentCommandLabel, Action contentAction)
   vid SourceTree.Notifications.NotificationsManager.ShowNotificationDialogWithYesConfirmation(String title, String message, String details)
   vid SourceTree.Configuration.WpfSpellCheckerPreFlightCheck.Run()
   vid SourceTree.AppRoot.RunPreFlightChecks()
   vid SourceTree.AppRoot.OnStartup(StartupEventArgs e)
   vid SourceTree.App.OnStartup(StartupEventArgs e)
ERROR [2017-10-09 10:01:21,731] [1] [SourceTree.App] [.ctor] - finish EnsureSquirrelExecutionStubIsCopied
ERROR [2017-10-09 10:01:21,857] [1] [SourceTree.App] [OnStartup] - Failed to start
System.NullReferenceException: Objektreferensen har inte angetts till en instans av ett objekt.
   vid SourceTree.Notifications.NotificationsManager.SetOwner(NotificationDialogWindow notificationWindow)
   vid SourceTree.Notifications.NotificationsManager.ShowNotificationDialog[T](NotificationDialogWindow notificationWindow, Tuple`2 customAction, VistaTaskDialogIcon icon)
   vid SourceTree.Notifications.NotificationsManager.ShowNotificationDialog[T](String title, String message, Tuple`2 customAction, String cancelLabel, String suppressionSetting, Action`1 suppressionChangedAction, Object contentControl, String contentCommandLabel, Action contentAction)
   vid SourceTree.Notifications.NotificationsManager.ShowNotificationDialogWithYesConfirmation(String title, String message, String details)
   vid SourceTree.Configuration.WpfSpellCheckerPreFlightCheck.Run()
   vid SourceTree.AppRoot.RunPreFlightChecks()
   vid SourceTree.AppRoot.OnStartup(StartupEventArgs e)
   vid SourceTree.App.OnStartup(StartupEventArgs e)
ERROR [2017-10-09 10:02:35,673] [1] [SourceTree.App] [.ctor] - finish EnsureSquirrelExecutionStubIsCopied
ERROR [2017-10-09 10:02:35,798] [1] [SourceTree.App] [OnStartup] - Failed to start
System.NullReferenceException: Objektreferensen har inte angetts till en instans av ett objekt.
   vid SourceTree.Notifications.NotificationsManager.SetOwner(NotificationDialogWindow notificationWindow)
   vid SourceTree.Notifications.NotificationsManager.ShowNotificationDialog[T](NotificationDialogWindow notificationWindow, Tuple`2 customAction, VistaTaskDialogIcon icon)
   vid SourceTree.Notifications.NotificationsManager.ShowNotificationDialog[T](String title, String message, Tuple`2 customAction, String cancelLabel, String suppressionSetting, Action`1 suppressionChangedAction, Object contentControl, String contentCommandLabel, Action contentAction)
   vid SourceTree.Notifications.NotificationsManager.ShowNotificationDialogWithYesConfirmation(String title, String message, String details)
   vid SourceTree.Configuration.WpfSpellCheckerPreFlightCheck.Run()
   vid SourceTree.AppRoot.RunPreFlightChecks()
   vid SourceTree.AppRoot.OnStartup(StartupEventArgs e)
   vid SourceTree.App.OnStartup(StartupEventArgs e)
bighatsmallfeet
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 9, 2017

I'm having this exact same problem. Maybe we should start a separate issue for it?

Entony Cvjetkovic
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 9, 2017

Same here.

Entony Cvjetkovic
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 9, 2017
Dmitri Peredera October 10, 2017

Guys, link seems to work. Open


C:\Users\MyMane\AppData\Local\Atlassian\SourceTree.exe_Url_something\2.3.1.0

Open user.config with notepad++ etc and add this to settings.

 If you have multiple folders, remove all and run setup again.

<iframe tabindex="-1" aria-hidden="true" src="https://a1096093.cdn.optimizely.com/client_storage/a1096093.html" hidden=""></iframe>

<setting name="AutomaticallyCleanUpDictionaryFiles" serializeAs="String"> 
<value>True</value>
</setting>
Luzius Meisser October 10, 2017

Thanks, that worked for me!

However, in the current version, the config file resides at:

C:\Users\USER\AppData\Local\SourceTree\app-2.3.1\SourceTree.exe.config

Fredrik Strange
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 10, 2017

Great. Tried many of the previous tips in this thread. But thanks to Dmitri Peredera my SourceTree runs again.

Markus Weser October 11, 2017

Thanks! Adding this setting solved for me (Win 10 16299.15, SourceTree 2.3.1.0)! +1

jithesh.menon@attinadsoftware.com
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 17, 2017

Hi Dimitri,

I have tried what you have suggested. But, no luck. 

Giovanni_Colombarini
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 19, 2017

Hi Dimitri
Thanks, that worked for me!!

Camilo Perez
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 27, 2017

Thank you very much! I am back to business.

Noppadon Tassanutriyakul
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 31, 2017

Thank @Dmitri Peredera

setting  AutomaticallyCleanUpDictionaryFiles

work for me

Ivan Penkov
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!
November 1, 2017

Hi Dimitri
Thanks it worked for me :)

3 votes
d2landy
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 11, 2016

After struggling with this for a while, and trying several other suggestions I figured out what worked for me.  I re-installed  SourceTree but to a different install folder ( i.e. "C:\Program Files (x86)\Atlassian\SourceTree2" instead of the default "C:\Program Files (x86)\Atlassian\SourceTree" )

Maybe there was a rogue registry entry or something causing problems.

Mesman September 11, 2016

This was (finally) the solution that worked for me. After the update to 1.9.6.1 it started once but not any more after that. I tried all other suggestions:

  • clearing the TEMP folder
  • deleting the folders in user/appdata/Atlassian
  • uninstalling / installing again
  • uninstalling / installing again and removing all registery entries (IObit uninstaller), and the folders in appdata/Atlassian
  • Repairing the .NET 4.6 installation

ALL of these did not work, finally changing the installation location did the trick, so thanks for the suggestion.

 

2 votes
PM_DEV
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!
May 19, 2016

I have the same problem with the current version of sourcetree on windows 10.

 

It worked good for a while, but suddenly i am not able to start it. Also clearing the contents of the folder C:\Users\[username]\AppData\Local\Atlassian did not help.

 

i also tried to download the latest version and "repair". Didn't help anything.

 

What can i do now? I want to keep all the projects, that i have already setup in sourcetree.

1 vote
Matthew Gallegos
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!
September 5, 2018

5 Minute Fix / Hack, no need to re-setup SourceTree. Worked for me. 

1. Make sure SourceTree is not running. Look in task manager just in case.

2. Move all contents of C:\Users\%USERNAME%\AppData\Local\Atlassian\SourceTree\ directory to a temporary folder on your desktop or somewhere easy to find.

3. Start Source Tree - You will notice it looks like a fresh install. Don't proceed, instead Exit the app and again, make sure SourceTree is not running by looking in task manager.

4. Move all contents of temporary folder back into C:\Users\%USERNAME%\AppData\Local\Atlassian\SourceTree\

5. Restart SourceTree and everything should be back to normal.

1 vote
Tilfried Weissenberger
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 30, 2017
gamlielmx
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 31, 2017

Thanks! Worked for me!

Antonio Petricca November 2, 2017

It works for me too! Thank you!

1 vote
Joshua Hau October 14, 2017

After upgrading, I had the same problems.
But nothing helped. After some more searching, this solved it for me:
https://jira.atlassian.com/browse/SRCTREEWIN-7898

Gudivada Ajaykumar October 15, 2017

Thanks! Joshua Hau.  I have faced same issue and the above solution resolved mine. :)

jasonholden
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 24, 2017

Fixed my issue.

Iash44
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 31, 2017

 

fixed for me, but WTF???

1 vote
Hiren
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 27, 2017

open directory

C:\Users\users\AppData\Local\Atlassian\SourceTree\git_extras

open git-credential-manager.exe

give credential 

now you can login to sourcetree when you install sourcetree.

1 vote
Joshua LeBlanc
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 8, 2017

I fixed this by changing the shortcut target from

 

C:\Users\<user>\AppData\Local\SourceTree\Update.exe --processStart "SourceTree_ExecutionStub.exe" 

to

C:\Users\<user>\AppData\Local\SourceTree\Update.exe --processStart "SourceTree.exe"

  

Relevant log that caused me to do this:

 

2017-08-08 14:57:49> Program: Want to launch 'C:\Users\<user>\AppData\Local\SourceTree\app-2.1.7\SourceTree_ExecutationStub.exe'
2017-08-08 14:57:49> Program: File C:\Users\<user>\AppData\Local\SourceTree\app-2.1.7\SourceTree_ExecutationStub.exe doesn't exist in current release
2017-08-08 14:57:49> Unhandled exception: System.ArgumentException: Value does not fall within the expected range.
at Squirrel.Update.Program.ProcessStart(String exeName, String arguments, Boolean shouldWait)
at Squirrel.Update.Program.executeCommandLine(String[] args)
at Squirrel.Update.Program.main(String[] args) 

 

1 vote
Sophie Jacobsen
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 1, 2017

I finally managed to get it back to work. I had tried to delete all Atlassian folders as explained earlier with no luck.

Then looking further I found this page

https://stackoverflow.com/questions/36986079/source-tree-doesnt-launch-after-installation

which advised to findthe sourcetree-log and suddenly the folder C:\Users\<user>\AppData\Local\Atlassian that was not there just before reappeared.
I looked at the log and I had:

ERROR [2017-06-01 09:26:24,150] [1] [SourceTree.App] [SetStartupJIT] - Startup JIT encountered an error...
System.Configuration.ConfigurationErrorsException: Root element is missing. (C:\Users\<user>\AppData\Local\Atlassian\SourceTree.exe_Url_hejbjngtfoz0aqshqbv3dvaifcttjeit\2.0.20.1\user.config) ---> System.Xml.XmlException: Root element is missing.
at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res)
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Configuration.XmlUtil..ctor(Stream stream, String name, Boolean readToFirstElement, ConfigurationSchemaErrors schemaErrors)
at System.Configuration.BaseConfigurationRecord.InitConfigFromFile()
--- End of inner exception stack trace ---
at System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean ignoreLocal)
at System.Configuration.BaseConfigurationRecord.ThrowIfParseErrors(ConfigurationSchemaErrors schemaErrors)
at System.Configuration.Configuration..ctor(String locationSubPath, Type typeConfigHost, Object[] hostInitConfigurationParams)
at System.Configuration.ClientConfigurationHost.OpenExeConfiguration(ConfigurationFileMap fileMap, Boolean isMachine, ConfigurationUserLevel userLevel, String exePath)
at System.Configuration.ConfigurationManager.OpenExeConfigurationImpl(ConfigurationFileMap fileMap, Boolean isMachine, ConfigurationUserLevel userLevel, String exePath, Boolean preLoad)
at SourceTree.App.SetStartupJIT()

Therfore I deleted C:\Users\<user>\AppData\Local\Atlassian (although I thought I had already done it before)
But after this the install was working !!

Hope it helps other people...

Nadav Maimon
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 26, 2017

.

1 vote
stevestreeting
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 16, 2013

This is one of those random ClickOnce installer / update errors that seems to occur sometimes when the ClickOnce database gets itself in a mess.

We have dropped ClickOnce because of these sorts of problems and are now using a standard MSI installer - all future updates will be distributed this way (you would have got a notification of this when the first update for this new system came through). I recommend that you re-install SourceTree from the new installer at http://sourcetreeapp.com/download/ which won't have this problem.

Adrian Cigher October 1, 2017

Sorry, but that doesn't work. Just a small splash screen and a short progress in the task bar and that's it.
Also the update process is not alright because it messes up the quick launch shortcut.

ericwa
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 7, 2017

I had the same thing - splash screen, then nothing. 

Fixed it by going into Control Panel -> Language -> Change Date, Time, or Number Formats -> Administrative -> Change System Locale, and setting it to "English (United States)", then rebooting, and running the installer again.

Markus Weser October 9, 2017

Same here after upgrading to Windows 10 Pro 1709 "Redstone 3" (Build 16299.15 a.k.a. "Fall Creators Update"): splash screen, then nothing. Changing System Locale doesn't solve.

0 votes
abushoaib
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!
December 5, 2019

Thanks @sergekol  works for me 

0 votes
oliver
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!
September 4, 2019

I had this problem and simply ran the .exe again and it worked. I didn't need to go through the step of uninstalling Sourcetree first. After that it worked again fine.

0 votes
Rob Grier
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!
May 29, 2019

I had the same problem and got a clue when others reported that sourcetree.log could not be deleted because it was in use. 

I opened the Task Manager and found a Sourcetree process in the Background Processes.  I ended task on that process and was able to open Sourcetree normally.

0 votes
peterfox1
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!
February 11, 2019

I fixed this issue by deleting a bookmark that was no longer accessible - it was originally on a network drive.

A quick way to get around it was to delete the bookmarks.xml and opentabs.xml (C:\Users\<user>\AppData\Local\Atlassian\SourceTree).

Btw if you try something and it doesn't work, you may need to make sure to 'end task' source tree from task manager before trying to re-launch it.

I think a particular version of sourcetree may have become sensitive to missing bookmarks since this was an old bookmark.

0 votes
Ashish Patel
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 5, 2018

Same problem.

Reinstallation didn't work

0 votes
Keilor Hidalgo
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!
May 11, 2018

Is just update the version .NET

0 votes
roqueortsEveris
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 25, 2018

This worked to me,

Open tasks manager,

Click Details tab and search Sourcetree.exe, then click secondary button on it and select 'Finish process tree'

Captura procesos.jpg

0 votes
Kevin Hilt
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!
February 28, 2018

Commenting to note that this annoyance still happens to me regularly.

nationaldme February 28, 2018

I ended up switching to GitKraken as a result.  I spent more time trying to open SourceTree that it actually saves my company money to pay for GitKraken Pro than try and deal with this issue(s).

0 votes
Ogi - My Landing Casts
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!
February 23, 2018

error.pngthis is blank, what should i do

0 votes
Vipul Parashar
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 24, 2017

I am Also face this problem 

kinldy suggest me how i can do 

0 votes
nationaldme October 24, 2017

This issue is so time consuming and counter-productive.  I cannot count the number of time I have uninstalled and installed, cleared temp files, manipulated the .config file just so I can work.  I am wasting a lot of time just using the application and it is causing me to rethink the use of the client.  Have there been any rock solid solutions to resolve this...I have tried each and every answer provided in this post, as well as others, and continue to have the same problems every couple of days.

nationaldme October 24, 2017

I am now at the point of uninstalling, deleting the app folders, clearing my temp/cache via CCleaner and windows tools, and the installer just closes on me, sheesh.

0 votes
Dmitri Peredera October 9, 2017

This is a duplicate post of above that wasn't accepted by the forum (I've got an error saying that post is malformatted).

0 votes
Nadav Maimon
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 26, 2017

It might have something to do with the Date and Time, check if you've got the correct time and date.

 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events