SourceTree 2.5.5 - Installation error. Windows 10.
Asked by Ivan:

Hello!  
There was an emergency shutdown of the computer. After power on, SourceTree stopped running: "SourceTree stopped working."

I tried to remove SourceTree and clear the data in the AppData folder.

But when I run the SourceTree installer, I see this error again.  
I tried to install the version of the archive. But the installer only creates files and folders in the AppData folder, and SourceTree just doesn't start without errors and messages.


Answers:
author: Ivan
body: I did this. It didn't help.

I think problem linked with .NET framework. Because I tried run another app - Git Extensions and there was this error again.

Then I tried update framework but my version is last.

Now I plan reinstall framework, but there is no in the control panel. And I looking for another way to uninstall framework .


author: Mike Corsaro
body: Could you upload your log file? On Windows, the Sourcetree log file is located at:

`C:\Users\<username>\AppData\Local\Atlassian\SourceTree\sourcetree.log`

comments: author: Ivan
body: That log file creates, but it's empty.

There are errors in the event viewer:

.NET Runtime 1026:

Application: SourceTree.exe  
Framework Version: v4.0.30319  
Description: The process was terminated due to an unhandled exception.  
Exception Info: System.TypeLoadException  
at System.ModuleHandle.ResolveType(System.Reflection.RuntimeModule, Int32, IntPtr\*, Int32, IntPtr\*, Int32, System.Runtime.CompilerServices.ObjectHandleOnStack)  
at System.ModuleHandle.ResolveTypeHandleInternal(System.Reflection.RuntimeModule, Int32, System.RuntimeTypeHandle\[\], System.RuntimeTypeHandle\[\])  
at System.Reflection.RuntimeModule.ResolveType(Int32, System.Type\[\], System.Type\[\])  
at System.Reflection.CustomAttribute.FilterCustomAttributeRecord(System.Reflection.CustomAttributeRecord, System.Reflection.MetadataImport, System.Reflection.Assembly ByRef, System.Reflection.RuntimeModule, System.Reflection.MetadataToken, System.RuntimeType, Boolean, System.Object\[\], System.Collections.IList, System.RuntimeType ByRef, System.IRuntimeMethodInfo ByRef, Boolean ByRef, Boolean ByRef)  
at System.Reflection.CustomAttribute.GetCustomAttributes(System.Reflection.RuntimeModule, Int32, Int32, System.RuntimeType, Boolean, System.Collections.IList, Boolean)  
at System.Reflection.CustomAttribute.GetCustomAttributes(System.Reflection.RuntimeAssembly, System.RuntimeType)  
at System.Resources.ResourceManager.GetSatelliteContractVersion(System.Reflection.Assembly)  
at System.Resources.ManifestBasedResourceGroveler.GetSatelliteAssembly(System.Globalization.CultureInfo, System.Threading.StackCrawlMark ByRef)  
at System.Resources.ManifestBasedResourceGroveler.GrovelForResourceSet(System.Globalization.CultureInfo, System.Collections.Generic.Dictionary\`2\<System.String,System.Resources.ResourceSet\>, Boolean, Boolean, System.Threading.StackCrawlMark ByRef)  
at System.Resources.ResourceManager.InternalGetResourceSet(System.Globalization.CultureInfo, Boolean, Boolean, System.Threading.StackCrawlMark ByRef)  
at System.Resources.ResourceManager.InternalGetResourceSet(System.Globalization.CultureInfo, Boolean, Boolean)  
at System.Resources.ResourceManager.GetObject(System.String, System.Globalization.CultureInfo, Boolean)  
at System.Resources.ResourceManager.GetStream(System.String, System.Globalization.CultureInfo)  
at MS.Internal.Resources.ResourceManagerWrapper.GetStream(System.String)  
at MS.Internal.AppModel.ResourcePart.EnsureResourceLocationSet()  
at MS.Internal.AppModel.ResourcePart.GetStreamCore(System.IO.FileMode, System.IO.FileAccess)  
at System.IO.Packaging.PackagePart.GetStream(System.IO.FileMode, System.IO.FileAccess)  
at System.IO.Packaging.PackWebResponse+CachedResponse.GetResponseStream()  
at System.IO.Packaging.PackWebResponse.get_ContentType()  
at MS.Internal.WpfWebRequestHelper.GetContentType(System.Net.WebResponse)  
at System.Windows.ResourceDictionary.set_Source(System.Uri)  
at MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(System.Object, System.Xaml.XamlMember, System.Object)

Exception Info: System.Windows.Markup.XamlParseException  
at System.Windows.Markup.XamlReader.RewrapException(System.Exception, System.Xaml.IXamlLineInfo, System.Uri)  
at System.Windows.Markup.WpfXamlLoader.Load(System.Xaml.XamlReader, System.Xaml.IXamlObjectWriterFactory, Boolean, System.Object, System.Xaml.XamlObjectWriterSettings, System.Uri)  
at System.Windows.Markup.WpfXamlLoader.LoadBaml(System.Xaml.XamlReader, Boolean, System.Object, System.Xaml.Permissions.XamlAccessLevel, System.Uri)  
at System.Windows.Markup.XamlReader.LoadBaml(System.IO.Stream, System.Windows.Markup.ParserContext, System.Object, Boolean)  
at SourceTree.App.Main()

Application Error 1000:

Faulting application name: SourceTree.exe, version: 2.4.8.0, time stamp: 0x5a5f7807  
Faulting module name: KERNELBASE.dll, version: 10.0.14393.2189, time stamp: 0x5abdad60  
Exception code: 0xe0434352  
Fault offset: 0x0000000000033c58  
Faulting process id: 0x1794  
Faulting application start time: 0x01d3f8a5fb54871b  
Faulting application path: C:\\Users\\user\\AppData\\Local\\SourceTree\\app-2.4.8\\SourceTree.exe  
Faulting module path: C:\\Windows\\System32\\KERNELBASE.dll  
Report Id: 4af484cc-8905-4047-98e2-587ec07dbd22  
Faulting package full name:  
Faulting package-relative application ID:


author: Ivan
body: It's log when I try install 2.4.8


author: Ivan
body: When I try install 2.5.5:  

Application: SourceTree.exe  
Framework Version: v4.0.30319  
Description: The process was terminated due to an unhandled exception.  
Exception Info: System.TypeLoadException  
at System.ModuleHandle.ResolveType(System.Reflection.RuntimeModule, Int32, IntPtr\*, Int32, IntPtr\*, Int32, System.Runtime.CompilerServices.ObjectHandleOnStack)  
at System.ModuleHandle.ResolveTypeHandleInternal(System.Reflection.RuntimeModule, Int32, System.RuntimeTypeHandle\[\], System.RuntimeTypeHandle\[\])  
at System.Reflection.RuntimeModule.ResolveType(Int32, System.Type\[\], System.Type\[\])  
at System.Reflection.CustomAttribute.FilterCustomAttributeRecord(System.Reflection.CustomAttributeRecord, System.Reflection.MetadataImport, System.Reflection.Assembly ByRef, System.Reflection.RuntimeModule, System.Reflection.MetadataToken, System.RuntimeType, Boolean, System.Object\[\], System.Collections.IList, System.RuntimeType ByRef, System.IRuntimeMethodInfo ByRef, Boolean ByRef, Boolean ByRef)  
at System.Reflection.CustomAttribute.GetCustomAttributes(System.Reflection.RuntimeModule, Int32, Int32, System.RuntimeType, Boolean, System.Collections.IList, Boolean)  
at System.Reflection.CustomAttribute.GetCustomAttributes(System.Reflection.RuntimeAssembly, System.RuntimeType)  
at System.Resources.ResourceManager.GetSatelliteContractVersion(System.Reflection.Assembly)  
at System.Resources.ManifestBasedResourceGroveler.GetSatelliteAssembly(System.Globalization.CultureInfo, System.Threading.StackCrawlMark ByRef)  
at System.Resources.ManifestBasedResourceGroveler.GrovelForResourceSet(System.Globalization.CultureInfo, System.Collections.Generic.Dictionary\`2\<System.String,System.Resources.ResourceSet\>, Boolean, Boolean, System.Threading.StackCrawlMark ByRef)  
at System.Resources.ResourceManager.InternalGetResourceSet(System.Globalization.CultureInfo, Boolean, Boolean, System.Threading.StackCrawlMark ByRef)  
at System.Resources.ResourceManager.InternalGetResourceSet(System.Globalization.CultureInfo, Boolean, Boolean)  
at System.Resources.ResourceManager.GetObject(System.String, System.Globalization.CultureInfo, Boolean)  
at System.Resources.ResourceManager.GetStream(System.String, System.Globalization.CultureInfo)  
at MS.Internal.Resources.ResourceManagerWrapper.GetStream(System.String)  
at MS.Internal.AppModel.ResourcePart.EnsureResourceLocationSet()  
at MS.Internal.AppModel.ResourcePart.GetStreamCore(System.IO.FileMode, System.IO.FileAccess)  
at System.IO.Packaging.PackagePart.GetStream(System.IO.FileMode, System.IO.FileAccess)  
at System.IO.Packaging.PackWebResponse+CachedResponse.GetResponseStream()  
at System.IO.Packaging.PackWebResponse.get_ContentType()  
at MS.Internal.WpfWebRequestHelper.GetContentType(System.Net.WebResponse)  
at System.Windows.ResourceDictionary.set_Source(System.Uri)  
at MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(System.Object, System.Xaml.XamlMember, System.Object)

Exception Info: System.Windows.Markup.XamlParseException  
at System.Windows.Markup.XamlReader.RewrapException(System.Exception, System.Xaml.IXamlLineInfo, System.Uri)  
at System.Windows.Markup.WpfXamlLoader.Load(System.Xaml.XamlReader, System.Xaml.IXamlObjectWriterFactory, Boolean, System.Object, System.Xaml.XamlObjectWriterSettings, System.Uri)  
at System.Windows.Markup.WpfXamlLoader.LoadBaml(System.Xaml.XamlReader, Boolean, System.Object, System.Xaml.Permissions.XamlAccessLevel, System.Uri)  
at System.Windows.Markup.XamlReader.LoadBaml(System.IO.Stream, System.Windows.Markup.ParserContext, System.Object, Boolean)  
at SourceTree.App.Main()

Faulting application name: SourceTree.exe, version: 2.5.5.0, time stamp: 0x5ad4730e  
Faulting module name: KERNELBASE.dll, version: 10.0.14393.2189, time stamp: 0x5abdad60  
Exception code: 0xe0434352  
Fault offset: 0x0000000000033c58  
Faulting process id: 0x19c0  
Faulting application start time: 0x01d3f8ab23593590  
Faulting application path: C:\\Users\\user\\AppData\\Local\\SourceTree\\app-2.5.5\\SourceTree.exe  
Faulting module path: C:\\Windows\\System32\\KERNELBASE.dll  
Report Id: 57a52ebe-bff1-4509-8131-ef3fd99712b6  
Faulting package full name:  
Faulting package-relative application ID:


author: Mike Corsaro
body: Odd... okay, try this:

* Uninstall Sourcetree
* Delete the entire folder "C:\\Users\\\<username\>\\AppData\\Local\\SourceTree\\"
* Make sure you have the latest version of .Net installed (4.7.2)
* Try and reinstall Sourcetree