It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Sourcetree install error on Windows 8

	Windows 			: 6.2.9200.0 (Win32NT)
	Common Language Runtime 	: 4.0.30319.18033
	System.Deployment.dll 		: 4.0.30319.17929 built by: FX45RTMREL
	clr.dll 			: 4.0.30319.18033 built by: FX45RTMGDR
	dfdll.dll 			: 4.0.30319.17929 built by: FX45RTMREL
	dfshim.dll 			: 4.0.41209.0 (Main.041209-0000)

	Deployment url			:

	Below is a summary of the errors, details of these errors are listed later in the log.
	* Activation of resulted in exception. Following failure messages were detected:
		+ The system cannot find the file specified. (Exception from HRESULT: 0x80070002)

	No transaction error was detected.

	There were no warnings during this operation.

	* [4/2/2013 13:25:07] : Activation of has started.

	Following errors were detected during this operation.
	* [4/2/2013 13:25:07] System.IO.FileNotFoundException
		- The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
		- Source: System.Deployment
		- Stack trace:
			at System.Deployment.Internal.Isolation.IsolationInterop.GetUserStore(UInt32 Flags, IntPtr hToken, Guid& riid)
			at System.Deployment.Application.ComponentStore..ctor(ComponentStoreType storeType, SubscriptionStore subStore)
			at System.Deployment.Application.SubscriptionStore..ctor(String deployPath, String tempPath, ComponentStoreType storeType)
			at System.Deployment.Application.SubscriptionStore.get_CurrentUser()
			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)

	No transaction information is available.

Any idea?



1 answer

The error seems to be that ClickOnce couldn't locate the folder used to install applications (the bit that failed was System.Deployment.Internal.Isolation.IsolationInterop.GetUserStore with a path error. That suggests that perhaps your environment has been changed from the standard Windows 8 install, perhaps that %USERPROFILE% isn't defined any more? It should be set to your user home (e.g. for me that's C:\Users\Steve). ClickOnce apps are installed in a derivative of this folder to avoid non-admin install issues, for me the root of all ClickOnce apps is C:\Users\Steve\AppData\Local\Apps\2.0\L18119EM.AJK\EPVB32CT.29C (yeah, those last 2 folders are weird, MS likes generated names for this it seems).

All these pieces are defined and present as standard in Win8 out of the box, so I'd check that you haven't somehow removed the %USERPROFILE% environment variable, or deleted something in that path thinking it's not relevant.

Some threads I found in Google with this error (not SourceTree, but other ClickOnce apps) suggested that a possible resolution if the above fails to elicit anything is to delete that %USERPROFILE%\AppData\Local\Apps\2.0 folder to reset the ClickOnce cache. I'd only do this as a very last resort though, because it will remove any ClickOnce apps you have and you'd have to reinstall them.

@Steve, thanks for the ellaborate answer.

I've deleted the %USERPROFILE%\AppData\Local\Apps\2.0 directory, but I got just the same error.

The %USERPROFILE% is well defined:


Any other idea?

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published Thursday in Confluence

Confluence CVEs and common questions

Two vulnerabilities have been published for Confluence Server and Data Center recently: March 20, 2019 CVE-2019-3395 / CVE-2019-3396 April 17, 2019 CVE-2019-3398 The goal of this article is...

116 views 0 10
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you