title: ClickOnce upgrade fails, System.Deployment.Internal.Isolation.StoreTransactionOperationType (27) - HRESULT: 0x8007001f
body: <p>I've a ClickOnce application. On one machine - Windows 7 (works on others) an upgrade failed - the installation is served by Apache.
  The entire log is ... long, but the only thing that errors are this:</p>
  
  <pre><code>ERROR DETAILS
      Following errors were detected during this operation.
      * [26.01.2010 10:55:07] System.Runtime.InteropServices.COMException
          - A device attached to the system is not functioning. (Exception from HRESULT: 0x8007001F)
          - 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)
              at System.Deployment.Application.ComponentStore.SubmitStoreTransactionCheckQuota(StoreTransactionContext storeTxn, SubscriptionState subState)
              at System.Deployment.Application.ComponentStore.CommitApplication(SubscriptionState subState, CommitApplicationParams commitParams)
              at System.Deployment.Application.SubscriptionStore.CommitApplication(SubscriptionState&amp; subState, CommitApplicationParams commitParams)
              at System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState&amp; subState, ActivationDescription actDesc)
              at System.Deployment.Application.ApplicationActivator.ConsumeUpdatedDeployment(SubscriptionState&amp; subState, ActivationDescription actDesc)
              at System.Deployment.Application.ApplicationActivator.PerformDeploymentUpdate(SubscriptionState&amp; subState, String&amp; errorPageUrl)
              at System.Deployment.Application.ApplicationActivator.ProcessOrFollowShortcut(String shortcutFile, String&amp; errorPageUrl, TempFile&amp; deployFile)
              at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String&amp; errorPageUrl)
              at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
  
  COMPONENT STORE TRANSACTION DETAILS
      * Transaction at [26.01.2010 10:55:07]
          + System.Deployment.Internal.Isolation.StoreOperationStageComponent
              - Status: Installed
              - HRESULT: 0x0
              - Manifest: 9P1J1J04.O7B.application
               [Cut.. More of the same with HRESULT 0x0]
          + System.Deployment.Internal.Isolation.StoreOperationSetDeploymentMetadata
              - Status: Set
              - HRESULT: 0x0
          + System.Deployment.Internal.Isolation.StoreTransactionOperationType (27)
              - HRESULT: 0x8007001f
  </code></pre>
  
  <p>This is not very helpful. Has anyone experienced something similar and tracked down a solution ? I've heard suggestions that installation files made read only can cause this, but I can not track down any read only files under C:\Users\testuser.TESTDOMAIN\AppData\Local\Apps\2.0</p>