When I try to download application using Clickonce in the same machine as my project, I got the following errors. Other end users can download it and work fine.
Can someone help me with this Thanks a lot
PLATFORM VERSION INFO
Windows : 5.1.2600.131072 (Win32NT)
Common Language Runtime : 2.0.50727.42
System.Deployment.dll : 2.0.50727.42 (RTM.050727-4200)
mscorwks.dll : 2.0.50727.42 (RTM.050727-4200)
dfdll.dll : 2.0.50727.42 (RTM.050727-4200)
dfshim.dll : 2.0.50727.42 (RTM.050727-4200)
SOURCES
Deployment url : http://commelpc78/SpyCon/SpyCon.application
Server : Microsoft-IIS/5.1
IDENTITIES
Deployment Identity : SpyCon.application, Version=1.0.0.162, Culture=neutral, PublicKeyToken=38c506af1b1bc2a8, processorArchitecture=msil
APPLICATION SUMMARY
* Installable application.
ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of http://commelpc78/SpyCon/SpyCon.application resulted in exception. Following failure messages were detected:
+ Exception occurred during store operation.
+ Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.
WARNINGS
There were no warnings during this operation.
OPERATION PROGRESS STATUS
* [13/04/2006 12:25:01 PM] : Activation of http://commelpc78/SpyCon/SpyCon.application has started.
* [13/04/2006 12:25:02 PM] : Processing of deployment manifest has successfully completed.
ERROR DETAILS
Following errors were detected during this operation.
* [13/04/2006 12:25:05 PM] System.Deployment.Application.DeploymentException (ComponentStore)
- Exception occurred during store operation.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.ComponentStore.SubmitStoreTransaction(StoreTransactionContext storeTxn, SubscriptionState subState)
at System.Deployment.Application.ComponentStore.SetPendingDeployment(SubscriptionState subState, DefinitionIdentity deployId, DateTime checkTime)
at System.Deployment.Application.SubscriptionStore.SetLastCheckTimeToNow(SubscriptionState subState)
at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut)
at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
--- Inner Exception ---
System.UnauthorizedAccessException
- Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
- Source: System.Deployment
- Stack trace:
at System.Deployment.Internal.Isolation.IStore.Transact(IntPtr cOperation, StoreTransactionOperation[] rgOperations, UInt32[] rgDispositions, Int32[] rgResults)
at System.Deployment.Internal.Isolation.Store.Transact(StoreTransactionOperation[] operations, UInt32[] rgDispositions, Int32[] rgResults)
at System.Deployment.Application.ComponentStore.SubmitStoreTransaction(StoreTransactionContext storeTxn, SubscriptionState subState)
COMPONENT STORE TRANSACTION DETAILS
* Transaction at [13/04/2006 12:25:05 PM]
+ System.Deployment.Internal.Isolation.StoreOperationSetDeploymentMetadata
- Status: Set
- HRESULT: 0x0
+ System.Deployment.Internal.Isolation.StoreTransactionOperationType (27)
- HRESULT: 0x80070005

Clickonce download Error
Steven Khiem
jobethm
First installation works flawlessly. At this point our program is used and eventually stores some files in the data directory that are set as read-only. No problems are seen yet.
First update works flawlessly. I see that ClickOnce leaves the previous version (to support RollBack I'm assuming) so the ReadOnly flag causes no problems since nothing is uninstalled.
Second update runs through and then the ClickOnce attempt clean up any old installation except for the previous version. At this point the ReadOnly flags cause the cleanup to fail leading to the above mentioned error.
Once I realized that the problem occurred on the second update it all started making sense. Especially since I noticed that ClickOnce was leaving behing multiple versions in the Data directory and only two versions in the assembly directories.
Hope this explanation helps some people, I certainly feel a lot better about ClickOnce now that I understand why it was failing. Of course a better error message would have helped ;)
-Jari
wy125
Nice thread folks. Will log a bug regarding the behaviors you are seeing here...
-Robert Schoen (MS Visual Basic QA)
Desperate Dan
This tends to happen more often if the application is uninstalled and then installed again and even then it may work a few times until it starts doing this. If I manually remove all directories made by the installation, then this problem goes away. At least for some time. Any help would be greatly appreciated.
thanks,
Jari