Issue with installing application

I started running into an error where the latest version application wouldn't launch, so I uninstalled and wanted to reinstall. Something seems to be broken with the installer because it doesn't look like the app is fully installed (not visible in app list) and when I run the setup again it attempts to start the app, leading to the previous error, with this error log:

PLATFORM VERSION INFO
Windows : 10.0.22631.0 (Win32NT)
Common Language Runtime : 4.0.30319.42000
System.Deployment.dll : 4.8.9176.0 built by: NET481REL1LAST_B
clr.dll : 4.8.9256.0 built by: NET481REL1LAST_B
dfdll.dll : 4.8.9176.0 built by: NET481REL1LAST_B
dfshim.dll : 10.0.22621.1 (WinBuild.160101.0800)

SOURCES
Deployment url : https://forms.plumsail.com/designer-sp/SPDesigner.application
Server : cloudflare

IDENTITIES
Deployment Identity : SPDesigner.application, Version=3.5.4.0, Culture=en, PublicKeyToken=af1e49e48a500f38, 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 https://forms.plumsail.com/designer-sp/SPDesigner.application resulted in exception. Following failure messages were detected:
+ The process cannot access the file because it is being used by another process. (Exception from HRESULT: 0x80070020)

COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.

WARNINGS
There were no warnings during this operation.

OPERATION PROGRESS STATUS
* [06-Aug-24 2:44:03 PM] : Activation of https://forms.plumsail.com/designer-sp/SPDesigner.application has started.
* [06-Aug-24 2:44:03 PM] : Processing of deployment manifest has successfully completed.
* [06-Aug-24 2:44:13 PM] : Processing of deployment manifest has successfully completed.

ERROR DETAILS
Following errors were detected during this operation.
* [06-Aug-24 2:44:13 PM] System.IO.FileLoadException
- The process cannot access the file because it is being used by another process. (Exception from HRESULT: 0x80070020)
- Source: mscorlib
- Stack trace:
at System.Deployment.Internal.Isolation.IsolationInterop.CreateActContext(CreateActContextParameters& Params)
at System.Deployment.Internal.Isolation.IsolationInterop.CreateActContext(IDefinitionAppId AppId)
at System.ActivationContext.CreateFromName(ApplicationIdentity applicationIdentity)
at System.Deployment.Application.ApplicationActivator.Activate(DefinitionAppId appId, AssemblyManifest appManifest, String activationParameter, Boolean useActivationParameter)
at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl, Uri& deploymentUri)
at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivationWithRetry(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 [06-Aug-24 2:44:03 PM]
+ System.Deployment.Internal.Isolation.StoreOperationSetDeploymentMetadata
- Status: Set
- HRESULT: 0x0
+ System.Deployment.Internal.Isolation.StoreTransactionOperationType (27)
- HRESULT: 0x0
* Transaction at [06-Aug-24 2:44:13 PM]
+ System.Deployment.Internal.Isolation.StoreOperationSetDeploymentMetadata
- Status: Set
- HRESULT: 0x0
+ System.Deployment.Internal.Isolation.StoreTransactionOperationType (27)
- HRESULT: 0x0

Hi @Sverrir,

Try deleting the ClickOnce cache. Let me know if this helps.

1 Like

Perfect, this worked. Thank you very much!

1 Like

@IliaLazarevskii - I am seeing this same error today. After deleting the ClickOnce cache, the error persists.

@shedev,

We've published a fix!

Please run the designer, the latest version will install automatically.

Please let us know if the issue persists

1 Like

Version 3.7.8 installed perfectly and I am back to work. Thank you as always!