Problem on installing SourceTree 2.3.1.0
Asked by Hassine ALLAYA:

Hello Everyone,

I'm on Windows 10. When i double-click the setup file, the icon of SourceTree is added immediately on my desktop. When i try to open it, nothing happens.

I displayed the logfile, and i find the error message below:

ERROR \[2017-09-28 10:19:44,786\] \[1\] \[SourceTree.App\] \[.ctor\] - finish EnsureSquirrelExecutionStubIsCopied  
ERROR \[2017-09-28 10:19:44,946\] \[1\] \[SourceTree.App\] \[OnStartup\] - Failed to start  
System.NullReferenceException: La r?f?rence d'objet n'est pas d?finie ? une instance d'un objet.  
? SourceTree.Notifications.NotificationsManager.SetOwner(NotificationDialogWindow notificationWindow)  
? SourceTree.Notifications.NotificationsManager.ShowNotificationDialog\[T\](NotificationDialogWindow notificationWindow, Tuple\`2 customAction, VistaTaskDialogIcon icon)  
? 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)  
? SourceTree.Notifications.NotificationsManager.ShowNotificationDialogWithYesConfirmation(String title, String message, String details)  
? SourceTree.Configuration.WpfSpellCheckerPreFlightCheck.Run()  
? SourceTree.AppRoot.RunPreFlightChecks()  
? SourceTree.AppRoot.OnStartup(StartupEventArgs e)  
? SourceTree.App.OnStartup(StartupEventArgs e)  
ERROR \[2017-09-28 10:19:55,337\] \[1\] \[SourceTree.App\] \[.ctor\] - finish EnsureSquirrelExecutionStubIsCopied  
ERROR \[2017-09-28 10:19:55,477\] \[1\] \[SourceTree.App\] \[OnStartup\] - Failed to start  
System.NullReferenceException: La r?f?rence d'objet n'est pas d?finie ? une instance d'un objet.  
? SourceTree.Notifications.NotificationsManager.SetOwner(NotificationDialogWindow notificationWindow)  
? SourceTree.Notifications.NotificationsManager.ShowNotificationDialog\[T\](NotificationDialogWindow notificationWindow, Tuple\`2 customAction, VistaTaskDialogIcon icon)  
? 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)  
? SourceTree.Notifications.NotificationsManager.ShowNotificationDialogWithYesConfirmation(String title, String message, String details)  
? SourceTree.Configuration.WpfSpellCheckerPreFlightCheck.Run()  
? SourceTree.AppRoot.RunPreFlightChecks()  
? SourceTree.AppRoot.OnStartup(StartupEventArgs e)  
? SourceTree.App.OnStartup(StartupEventArgs e)

Please help me find the problem, thanks


Answers:
author: Ana Retamal
body: Hello Hassine! This is a known issue, they were talking about it on [this thread](https://community.atlassian.com/t5/Sourcetree-questions/SourceTree-will-no-longer-start/qaq-p/642054). To solve it, please navigate to the config file location (*C:\\Users\\{USERNAME}\\AppData\\Local\\Atlassian\\SourceTree.exe_{RANDOM_GUID}\\2.3.1.0\\user.config*) and find the following line:

```
<setting name="AutomaticallyCleanUpDictionaryFiles" serializeAs="String"> <value>True</value> </setting>
```

Make sure that value is set to ***True.***

Let us know if that worked for you!

Cheers,Ana

comments: author: Ana Retamal
body: Hello! As an update for this question, we have just started the progressive rollout of Sourcetree v2.3.5.0 which includes a fix for this issue. You should be prompted to upgrade sometime over the next 14 days or, alternatively, you can download the update directly from <https://downloads.atlassian.com/software/sourcetree/windows/ga/SourceTreeSetup-2.3.5.0.exe>

Have a nice day!

Ana


Tags: windows