17

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:

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& subState, CommitApplicationParams commitParams)
            at System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState& subState, ActivationDescription actDesc)
            at System.Deployment.Application.ApplicationActivator.ConsumeUpdatedDeployment(SubscriptionState& subState, ActivationDescription actDesc)
            at System.Deployment.Application.ApplicationActivator.PerformDeploymentUpdate(SubscriptionState& subState, String& errorPageUrl)
            at System.Deployment.Application.ApplicationActivator.ProcessOrFollowShortcut(String shortcutFile, String& errorPageUrl, TempFile& deployFile)
            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
    * 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

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

0

4 Answers 4

1

There is a verified conflict between ClickOnce and Kensington trackball mouse drivers (random, I know). Computers with the mouse driver that attempt to run a ClickOnce application will receive the "A device attached to the system is not functioning." error.

Hope this helps.

1
  • Definitely not kidding. It's in my company's HelpDesk ClickOnce troubleshooting documentation. Jan 6, 2012 at 16:40
1

I ran into this error when I implemented this fix for my application losing customized settings when upgrading.

The problem was I called Settings.Default.Upgrade() in the constructor of my custom application context once the application was restarted.

I got rid of the error by upgrading the settings right after the application was upgraded before restarting it (error handling omitted):

ApplicationDeployment ad = ApplicationDeployment.CurrentDeployment;
UpdateCheckInfo info = ad.CheckForDetailedUpdate();
if (info.UpdateAvailable)
{
  ad.Update();
  UpgradeSettings(); // this calls "Settings.Default.Upgrade()" if necessary
  System.Windows.Forms.Application.Restart();
}
1

See ClickOnce error occurs when upgrading installed ClickOnce app.

1
  • 1
    In my case, removing the readonly attribute to the users*user*\AppData directory fixed the issue. at least temporarily.
    – David
    May 4, 2012 at 17:27
0

I know this is old, but in case it's helpful. I had formatted a user drive to refs, which was hosing the user profiles. this prevented our internal click-once application from installing. I think the same or at least a similar issue with an error about a device not functioning. reformatting back to ntfs solved the issue.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.