Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Problem deploying ClickOnce app
 

Problem deploying ClickOnce app

Hi,

I'm getting the following error when pressing the install or run button on the clickonce page after deployment.

"Application Failed
Unable to activate the application. Please contact the application publisher"

Any ideas what causes this?

Does ClickOnce work much better with newer versions than Beta2?


Here are the error details and platform info.

PLATFORM VERSION INFO
 Windows    : 5.1.2600.131072 (Win32NT)
 Common Language Runtime  : 2.0.50215.44
 System.Deployment.dll   : 2.0.50215.44 (beta2.050215-4400)
 mscorwks.dll    : 2.0.50215.44 (beta2.050215-4400)
 dfdll.dll    : 8.0.50215.44 (beta2.050215-4400)
 dfshim.dll    : 2.0.50215.44 (beta2.050215-4400)

ERROR DETAILS
 Following errors were detected during this operation.
 * [26 okt 2005 13:23:41 +03:00] 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.Internal.Isolation.IsolationInterop.GetUserStore()
   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)
   at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
netterdotter  Wednesday, October 26, 2005 10:31 AM
I had the same 0x80070002 error coming from GetUserStore when running a ClickOnce application. It turned out that the user's UsrClass.dat registry hive hadn't loaded in correctly -after going to HKEY_USERS and manually loading it at [their SID]_Classes, theapp executed successfully.

Regards
Steve
  • Proposed As Answer bySteve Hunter Thursday, May 21, 2009 3:30 PM
  •  
Steve Hunter  Thursday, May 21, 2009 3:30 PM

Hi Steve,

I am getting the same error reported above when I try to deploy an app I have written See below I am not sure how to do what you are describing.
Can you provide a bit more detail?


PLATFORM VERSION INFO
Windows : 6.0.6001.65536 (Win32NT)
Common Language Runtime : 2.0.50727.3074
System.Deployment.dll : 2.0.50727.3053 (netfxsp.050727-3000)
mscorwks.dll : 2.0.50727.3074 (QFE.050727-3000)
dfdll.dll : 2.0.50727.3053 (netfxsp.050727-3000)
dfshim.dll : 2.0.50727.3053 (netfxsp.050727-3000)

SOURCES
Deployment url: file:///G:/TouchSreenRelease/TouchSreen.application

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

COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.

WARNINGS
There were no warnings during this operation.

OPERATION PROGRESS STATUS
* [28/09/2009 10:30:31 AM] : Activation of G:\TouchSreenRelease\TouchSreen.application has started.

ERROR DETAILS
Following errors were detected during this operation.
* [28/09/2009 10:30:31 AM] 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.Internal.Isolation.IsolationInterop.GetUserStore()
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)

COMPONENT STORE TRANSACTION DETAILS
No transaction information is available.


Don
DonJuna  Monday, September 28, 2009 3:30 PM

You can use google to search for other answers

Custom Search

More Threads

• Sign manifests using dns instead of ip
• Service stopping automatically
• dot net setup and deployment projects custom install an exe file
• VS 2005 and Excel ClickOnce problem
• running an exe file when operating Setup.
• Cannot add file or assembly
• Deployment Issues (Major Headache)
• How can I use "Click Once" & "Windows Installer(.msi)" both in Visual Studio 2005, and what steps must I follow?
• GAC, Registering .NET DLL's using REGASM
• Computer reset after running setup