Source Tree for Windows does not start
Asked by Felix:

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%7CERROR 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&amp; errorPageUrl, TempFile&amp; deployFile)			at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String&amp; 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.


Answers:
author: stevestreeting
body: 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](http://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.

comments: author: Felix
body: Did work, thanks.


author: Juanma15
body: 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.


author: idurvesh
body: Same happening here from yesterday


author: PM_DEV
body: What worked for me: "**Start programm as administrator**."

But why does sourcetree need admin-rights?


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


author: david_giraldo
body: A good software must not have that kind of trouble.


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


author: chris_trinder
body: 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.


author: sergekol
body: 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](https://community.atlassian.com/t5/image/serverpage/image-id/7444i91B1F37329AC45ED/image-size/large?v=v2&px=999 "user_config.png")


author: sergekol
body: 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


author: drazennis
body: 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.


author: Juan S. Orozco
body: it was really helpfull. Thanks. Gracias!


author: Nitin Sapre
body: Hi [@sergekol](/t5/user/viewprofilepage/user-id/428113),

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


author: 2xlbu4u
body: I deleted Users\\\<myname\>\\AppData\\Local\\Atlassian\\SourceTree\\cache folder.

That did the trick for me


author: atom888
body: 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.


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

comments: author: Morgan Yarbrough
body: This worked for me on Windows 10 x64 except I also had to clear the SoureTree\[long hash\] directory


author: Theodore Rand
body: Much appreciated!


author: nphp101
body: You saved my hours!!!! MANY THANKS!!!


author: eramos_bol
body: Thanks Christian, this saved me some time as well.


author: Sergii Karanda
body: Thank You!


author: Sankalp Suryawanshi
body: 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!


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


author: Willian Sousa
body: It worked for me... Thank you!


author: Sri Phani
body: 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


author: Sietse van der Laan
body: That worked! Thanks!


author: sylvain Muk.
body: Thanks


author: cyclion
body: Hooray! Source Tree launched!!!  
![ST.png](https://community.atlassian.com/t5/image/serverpage/image-id/6437i0AFFC6162023B938/image-size/large?v=v2&px=999 "ST.png")


author: quinn.zhao
body: I had no this setup


author: Duong Van Khuong
body: Thanks you. it worked for me.


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


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


author: Daniel Eskenazi
body: 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.

comments: author: Juanma15
body: Thank you Daniel, I have solved the problem doing exactly the same.


author: gusthavosouza
body: Thanks this worked for me too


author: Josephine Medel
body: 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.


author: ofranco
body: Works for me too. Thanks.


author: Hasan Ali
body: Worked like a charm.Only deleting the directory solved the issue.Thanks.


author: Alistair.Hann
body: Perfect - worked for me. thank you.


author: mredman
body: 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.


author: matthew farwell
body: 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.


author: mredman
body: Have a look at my answer here:  
[https://community.atlassian.com/t5/Sourcetree-questions/Windows-10-Source-tree-won-t-update-or-install-the-older-version/qaq-p/262840?utm_source=atlcomm\&utm_medium=email\&utm_campaign=immediate_general_reply\&utm_content=topic](https://community.atlassian.com/t5/Sourcetree-questions/Windows-10-Source-tree-won-t-update-or-install-the-older-version/qaq-p/262840?utm_source=atlcomm&utm_medium=email&utm_campaign=immediate_general_reply&utm_content=topic)


author: toan_pham82
body: 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


author: Dmitri Peredera
body: 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)
```

comments: author: bighatsmallfeet
body: I'm having this exact same problem. Maybe we should start a separate issue for it?


author: Entony Cvjetkovic
body: Same here.


author: Entony Cvjetkovic
body: Post from [Mike Corsaro](https://community.atlassian.com/t5/user/viewprofilepage/user-id/842547) solved it for me

<https://community.atlassian.com/t5/Sourcetree-questions/SourceTree-failed-to-start/qaq-p/642445>


author: Dmitri Peredera
body: Guys, link seems to work. Open

<br />

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>
```


author: Luzius Meisser
body: 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


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


author: Markus Weser
body: Thanks! Adding this setting solved for me (Win 10 16299.15, SourceTree 2.3.1.0)! +1


author: jithesh.menon@attinadsoftware.com
body: Hi Dimitri,

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


author: Giovanni_Colombarini
body: Hi Dimitri  
Thanks, that worked for me!!  


author: Camilo Perez
body: Thank you very much! I am back to business.


author: Noppadon Tassanutriyakul
body: Thank @[Dmitri Peredera](https://community.atlassian.com/t5/user/viewprofilepage/user-id/1155456)

setting AutomaticallyCleanUpDictionaryFiles

work for me


author: Ivan Penkov
body: Hi Dimitri  
Thanks it worked for me :)


author: d2landy
body: 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.

comments: author: Mesman
body: 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.


author: PM_DEV
body: 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.


author: Matthew Gallegos
body: **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.


author: Tilfried Weissenberger
body: Version 2.3.5.0 solves the problem: <https://downloads.atlassian.com/software/sourcetree/windows/ga/SourceTreeSetup-2.3.5.0.exe>

comments: author: gamlielmx
body: Thanks! Worked for me!


author: Antonio Petricca
body: It works for me too! Thank you!


author: Joshua Hau
body: 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>

comments: author: Gudivada Ajaykumar
body: Thanks! Joshua Hau. I have faced same issue and the above solution resolved mine. :)


author: jasonholden
body: Fixed my issue.


author: Iash44
body: fixed for me, but WTF???


author: Hiren
body: 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.


author: Joshua LeBlanc
body: 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)?
```


author: Sophie Jacobsen
body: 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](https://confluence.atlassian.com/sourcetreekb/sourcetree-logfile-location-675384748.html) 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...

comments: author: Nadav Maimon
body: .


author: stevestreeting
body: 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.

comments: author: Adrian Cigher
body: 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.


author: ericwa
body: 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.


author: Markus Weser
body: 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.


author: abushoaib
body: Thanks [@sergekol](/t5/user/viewprofilepage/user-id/428113) works for me


author: oliver
body: 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.


author: Rob Grier
body: 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.


author: peterfox1
body: 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.


author: Ashish Patel
body: Same problem.

Reinstallation didn't work


author: Keilor Hidalgo
body: Is just update the version .NET


author: roqueortsEveris
body: 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](https://community.atlassian.com/t5/image/serverpage/image-id/20588i643D22D8FFF60590/image-size/large?v=v2&px=999 "Captura procesos.jpg")


author: Kevin Hilt
body: Commenting to note that this annoyance still happens to me regularly.

comments: author: nationaldme
body: 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).


author: Ogi - My Landing Casts
body: ![error.png](https://community.atlassian.com/t5/image/serverpage/image-id/15690i2DA83AAF86CAC8DA/image-size/large?v=v2&px=999 "error.png")this is blank, what should i do


author: Vipul Parashar
body: I am Also face this problem

kinldy suggest me how i can do


author: nationaldme
body: 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.

comments: author: nationaldme
body: 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.


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


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


Tags: github

google