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 Join to answer
Community showcase
Jason Wong
Published yesterday in Agility Beta

Welcome to agility

Every team in the world is unique, and so   Atlassian believes   that each and every team's best way of working  needs to  be molded to their unique circumstances  – ...

352 views 6 15
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot