Sourcetree 2.3.1.0 wont start
Asked by VisorMark:

Today sourcetree just decided to stop working. After trying to clear the config files etc i gave up and tried to reinstall:

- Uninstalled sourcetree via add remove programs (and in subsequent attempts using CCleaner)

- Deleted the folders: ...\\AppData\\Local\\Atlassian and ...\\AppData\\Local\\Sourcetree

After reinstalling i get the following error in the sourcetree log:

ERROR \[2017-09-19 15:44:28,674\] \[1\] \[SourceTree.AppRoot\] \[InitializeMef\] - Exception of type 'System.OutOfMemoryException' was thrown.

<br />

System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.  
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)  
at System.Reflection.Assembly.GetTypes()  
at System.ComponentModel.Composition.Hosting.AssemblyCatalog.get_InnerCatalog()  
at System.ComponentModel.Composition.Hosting.AssemblyCatalog.GetExports(ImportDefinition definition)  
at System.Linq.Enumerable.\<SelectManyIterator\>d__16\`2.MoveNext()  
at System.Collections.Generic.List\`1.InsertRange(Int32 index, IEnumerable\`1 collection)  
at System.ComponentModel.Composition.Hosting.AggregateCatalog.GetExports(ImportDefinition definition)  
at System.ComponentModel.Composition.Hosting.AggregateCatalog.GetExports(ImportDefinition definition)  
at System.ComponentModel.Composition.Hosting.CatalogExportProvider.InternalGetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition)  
at System.ComponentModel.Composition.Hosting.ExportProvider.TryGetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition, IEnumerable\`1\& exports)  
at System.ComponentModel.Composition.Hosting.ExportProvider.TryGetExports(ImportDefinition definition, AtomicComposition atomicComposition, IEnumerable\`1\& exports)  
at System.ComponentModel.Composition.Hosting.CatalogExportProvider.GetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition)  
at System.ComponentModel.Composition.Hosting.ExportProvider.TryGetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition, IEnumerable\`1\& exports)  
at System.ComponentModel.Composition.Hosting.AggregateExportProvider.GetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition)  
at System.ComponentModel.Composition.Hosting.ExportProvider.TryGetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition, IEnumerable\`1\& exports)  
at System.ComponentModel.Composition.Hosting.CompositionContainer.GetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition)  
at System.ComponentModel.Composition.Hosting.ExportProvider.TryGetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition, IEnumerable\`1\& exports)  
at System.ComponentModel.Composition.Hosting.ExportProvider.GetExports(ImportDefinition definition, AtomicComposition atomicComposition)  
at System.ComponentModel.Composition.Hosting.ImportEngine.TryGetExports(ExportProvider provider, ComposablePart part, ImportDefinition definition, AtomicComposition atomicComposition)  
at System.ComponentModel.Composition.Hosting.ImportEngine.TrySatisfyImportSubset(PartManager partManager, IEnumerable\`1 imports, AtomicComposition atomicComposition)  
at System.ComponentModel.Composition.Hosting.ImportEngine.TryPreviewImportsStateMachine(PartManager partManager, ComposablePart part, AtomicComposition atomicComposition)  
at System.ComponentModel.Composition.Hosting.ImportEngine.PreviewImports(ComposablePart part, AtomicComposition atomicComposition)  
at System.ComponentModel.Composition.Hosting.ComposablePartExportProvider.Compose(CompositionBatch batch)  
at SourceTree.AppRoot.InitializeMef()  
ERROR \[2017-09-19 15:44:28,696\] \[1\] \[SourceTree.AppRoot\] \[.ctor\] - configurationManager is null  
ERROR \[2017-09-19 15:44:31,383\] \[1\] \[SourceTree.AppRoot\] \[InitializeMef\] - Exception of type 'System.OutOfMemoryException' was thrown.

<br />

System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.  
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)  
at System.Reflection.Assembly.GetTypes()  
at System.ComponentModel.Composition.Hosting.AssemblyCatalog.get_InnerCatalog()  
at System.ComponentModel.Composition.Hosting.AssemblyCatalog.GetExports(ImportDefinition definition)  
at System.Linq.Enumerable.\<SelectManyIterator\>d__16\`2.MoveNext()  
at System.Collections.Generic.List\`1.InsertRange(Int32 index, IEnumerable\`1 collection)  
at System.ComponentModel.Composition.Hosting.AggregateCatalog.GetExports(ImportDefinition definition)  
at System.ComponentModel.Composition.Hosting.AggregateCatalog.GetExports(ImportDefinition definition)  
at System.ComponentModel.Composition.Hosting.CatalogExportProvider.InternalGetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition)  
at System.ComponentModel.Composition.Hosting.ExportProvider.TryGetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition, IEnumerable\`1\& exports)  
at System.ComponentModel.Composition.Hosting.ExportProvider.TryGetExports(ImportDefinition definition, AtomicComposition atomicComposition, IEnumerable\`1\& exports)  
at System.ComponentModel.Composition.Hosting.CatalogExportProvider.GetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition)  
at System.ComponentModel.Composition.Hosting.ExportProvider.TryGetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition, IEnumerable\`1\& exports)  
at System.ComponentModel.Composition.Hosting.AggregateExportProvider.GetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition)  
at System.ComponentModel.Composition.Hosting.ExportProvider.TryGetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition, IEnumerable\`1\& exports)  
at System.ComponentModel.Composition.Hosting.CompositionContainer.GetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition)  
at System.ComponentModel.Composition.Hosting.ExportProvider.TryGetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition, IEnumerable\`1\& exports)  
at System.ComponentModel.Composition.Hosting.ExportProvider.GetExports(ImportDefinition definition, AtomicComposition atomicComposition)  
at System.ComponentModel.Composition.Hosting.ImportEngine.TryGetExports(ExportProvider provider, ComposablePart part, ImportDefinition definition, AtomicComposition atomicComposition)  
at System.ComponentModel.Composition.Hosting.ImportEngine.TrySatisfyImportSubset(PartManager partManager, IEnumerable\`1 imports, AtomicComposition atomicComposition)  
at System.ComponentModel.Composition.Hosting.ImportEngine.TryPreviewImportsStateMachine(PartManager partManager, ComposablePart part, AtomicComposition atomicComposition)  
at System.ComponentModel.Composition.Hosting.ImportEngine.PreviewImports(ComposablePart part, AtomicComposition atomicComposition)  
at System.ComponentModel.Composition.Hosting.ComposablePartExportProvider.Compose(CompositionBatch batch)  
at SourceTree.AppRoot.InitializeMef()  
ERROR \[2017-09-19 15:44:31,402\] \[1\] \[SourceTree.AppRoot\] \[.ctor\] - configurationManager is null  
ERROR \[2017-09-19 15:44:31,451\] \[1\] \[SourceTree.App\] \[.ctor\] - finish EnsureSquirrelExecutionStubIsCopied  
ERROR \[2017-09-19 15:44:34,775\] \[1\] \[SourceTree.App\] \[OnStartup\] - Failed to start  
System.ArgumentNullException: Value cannot be null.  
Parameter name: source

at System.Linq.OrderedEnumerable\`2..ctor(IEnumerable\`1 source, Func\`2 keySelector, IComparer\`1 comparer, Boolean descending)  
at SourceTree.AppRoot.InitializeCrashAnaylyticsServices()  
at SourceTree.AppRoot.OnStartup(StartupEventArgs e)  
at SourceTree.App.OnStartup(StartupEventArgs e)

Please help me!


Answers:
author: jyo
body: Answered via: <https://community.atlassian.com/t5/Sourcetree-questions/Sourcetree-2-3-1-0-wont-run/qaq-p/642389#U642681>