I’ve encountered a challenging issue with ClickOnce deployment. After successfully publishing my application on a deployment server (*.76), I can install and run the application without any problems on the local *.76 machine. However, when I try to install the application remotely on a different machine, I run into an error that prevents the installation from proceeding.
Here are the steps I’ve taken so far:
-
I’ve signed the manifests using both
.pfx
and.snk
files to ensure a strong name and authenticity. -
I’ve conducted tests on various machines to replicate the issue.
The ClickOnce deployment and application settings have been thoroughly reviewed and appear to be configured correctly.Despite these efforts, the remote installation fails, while local installations on the deployment server (*.76) are successful. This leads me to believe there might be a network-related issue or a configuration detail that I’m overlooking.
Below is the log I’ve received from publisher:
PLATFORM VERSION INFO
Windows : 6.3.9600.0 (Win32NT)
Common Language Runtime : 4.0.30319.42000
System.Deployment.dll : 4.8.4654.0 built by: NET48REL1LAST_B
clr.dll : 4.8.4645.0 built by: NET48REL1LAST_B
dfdll.dll : 4.8.4654.0 built by: NET48REL1LAST_B
dfshim.dll : 6.3.9600.20565 (winblue_ltsb_escrow.220810-1750)
SOURCES
Deployment url : file://otpgotst4/Pub/OT.System.application
Deployment Provider url : file://*/Pub/Application%20Files/OT.System.application
ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of \OTPGOTST4PubOT.System.application resulted in exception. Following failure messages were detected:
+ Downloading file://*/Pub/Application Files/OT.System.application did not succeed.
+ Could not find file '\*PubApplication FilesOT.System.application'.
+ Could not find file '\*PubApplication FilesOT.System.application'.
+ Could not find file '\*PubApplication FilesOT.System.application'.
COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.
WARNINGS
There were no warnings during this operation.
OPERATION PROGRESS STATUS
* [2024-06-03 21:31:34] : Activation of \OTPGOTST4PubOT.System.application has started.
ERROR DETAILS
Following errors were detected during this operation.
* [2024-06-03 21:31:34] System.Deployment.Application.DeploymentDownloadException (Unknown subtype)
- Downloading file://*/Pub/Application Files/OT.System.application did not succeed.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
at System.Deployment.Application.SystemNetDownloader.DownloadAllFiles()
at System.Deployment.Application.FileDownloader.Download(SubscriptionState subState, X509Certificate2 clientCertificate)
at System.Deployment.Application.DownloadManager.DownloadManifestAsRawFile(Uri& sourceUri, String targetPath, IDownloadNotification notification, DownloadOptions options, ServerInformation& serverInformation)
at System.Deployment.Application.DownloadManager.DownloadDeploymentManifestDirect(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, IDownloadNotification notification, DownloadOptions options, ServerInformation& serverInformation)
at System.Deployment.Application.DownloadManager.FollowDeploymentProviderUri(SubscriptionStore subStore, AssemblyManifest& deployment, Uri& sourceUri, TempFile& tempFile, IDownloadNotification notification, DownloadOptions options)
at System.Deployment.Application.DownloadManager.DownloadDeploymentManifestBypass(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, SubscriptionState& subState, IDownloadNotification notification, DownloadOptions options)
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)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
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)
--- Inner Exception ---
System.Net.WebException
- Could not find file '\*PubApplication FilesOT.System.application'.
- Source: System
- Stack trace:
at System.Net.FileWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
--- Inner Exception ---
System.Net.WebException
- Could not find file '\*PubApplication FilesOT.System.application'.
- Source: System
- Stack trace:
at System.Net.FileWebResponse..ctor(FileWebRequest request, Uri uri, FileAccess access, Boolean asyncHint)
at System.Net.FileWebRequest.GetResponseCallback(Object state)
--- Inner Exception ---
System.IO.FileNotFoundException
- Could not find file '\*PubApplication FilesOT.System.application'.
- Source: mscorlib
- Stack trace:
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at System.Net.FileWebStream..ctor(FileWebRequest request, String path, FileMode mode, FileAccess access, FileShare sharing, Int32 length, Boolean async)
at System.Net.FileWebResponse..ctor(FileWebRequest request, Uri uri, FileAccess access, Boolean asyncHint)
COMPONENT STORE TRANSACTION DETAILS
No transaction information is available.
Regarding future questions i’m providing You with structure and listing of directories
Directory: \*PubApplication FilesOT.System_1_0_1_106
Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 03.06.2024 20:52 lib
d----- 03.06.2024 20:52 SqlServerTypes
-a---- 03.06.2024 19:26 38400 CoreModul.dll
-a---- 03.06.2024 19:26 2086912 CoreModulDB.dll
-a---- 29.02.2024 22:00 209408 CsvHelper.dll
-a---- 29.04.2024 08:16 666 DbConfig.json
-a---- 21.02.2024 14:24 1054312 DevExpress.Charts.v23.1.Core.dll
-a---- 21.02.2024 14:23 1739880 DevExpress.CodeParser.v23.1.dll
-a---- 21.02.2024 14:23 937064 DevExpress.Data.Desktop.v23.1.dll
-a---- 21.02.2024 14:23 5545576 DevExpress.Data.v23.1.dll
-a---- 21.02.2024 14:23 2633320 DevExpress.DataAccess.v23.1.dll
-a---- 21.02.2024 14:23 78440 DevExpress.DataVisualization.v23.1.Core.dll
-a---- 21.02.2024 14:23 935528 DevExpress.Drawing.v23.1.dll
-a---- 21.02.2024 14:24 2268264 DevExpress.ExpressApp.v23.1.dll
-a---- 21.02.2024 14:24 8461928 DevExpress.Images.v23.1.dll
-a---- 21.02.2024 14:24 1594984 DevExpress.Mvvm.v23.1.dll
-a---- 21.02.2024 14:24 3887208 DevExpress.Office.v23.1.Core.dll
-a---- 21.02.2024 14:24 5112424 DevExpress.Pdf.v23.1.Core.dll
-a---- 21.02.2024 14:24 528488 DevExpress.Pdf.v23.1.Drawing.dll
-a---- 21.02.2024 14:24 368232 DevExpress.Persistent.Base.v23.1.dll
-a---- 21.02.2024 14:24 3814504 DevExpress.PivotGrid.v23.1.Core.dll
-a---- 21.02.2024 14:24 4512360 DevExpress.Printing.v23.1.Core.dll
-a---- 21.02.2024 14:24 8917096 DevExpress.RichEdit.v23.1.Core.dll
-a---- 21.02.2024 14:24 262248 DevExpress.RichEdit.v23.1.Export.dll
-a---- 21.02.2024 14:24 92776 DevExpress.Sparkline.v23.1.Core.dll
-a---- 21.02.2024 14:24 17344104 DevExpress.Spreadsheet.v23.1.Core.dll
-a---- 21.02.2024 14:24 41576 DevExpress.TreeMap.v23.1.Core.dll
-a---- 21.02.2024 14:24 20960872 DevExpress.Utils.v23.1.dll
-a---- 21.02.2024 14:23 322152 DevExpress.Xpf.Accordion.v23.1.dll
-a---- 21.02.2024 14:23 3405416 DevExpress.Xpf.Charts.v23.1.dll
-a---- 21.02.2024 14:23 1489512 DevExpress.Xpf.Controls.v23.1.dll
-a---- 21.02.2024 14:23 11742824 DevExpress.Xpf.Core.v23.1.dll
-a---- 21.02.2024 14:24 1604712 DevExpress.Xpf.Docking.v23.1.dll
-a---- 21.02.2024 14:24 510568 DevExpress.Xpf.DocumentViewer.v23.1.Core.dll
-a---- 21.02.2024 14:24 990312 DevExpress.Xpf.Gantt.v23.1.dll
-a---- 21.02.2024 14:24 2535528 DevExpress.Xpf.Grid.v23.1.Core.dll
-a---- 21.02.2024 14:24 2936424 DevExpress.Xpf.Grid.v23.1.dll
-a---- 21.02.2024 14:24 115816 DevExpress.Xpf.Layout.v23.1.Core.dll
-a---- 21.02.2024 14:24 494696 DevExpress.Xpf.LayoutControl.v23.1.dll
-a---- 21.02.2024 14:24 567400 DevExpress.Xpf.NavBar.v23.1.dll
-a---- 21.02.2024 14:24 85096 DevExpress.Xpf.Office.v23.1.dll
-a---- 21.02.2024 14:24 1014888 DevExpress.Xpf.PdfViewer.v23.1.dll
-a---- 21.02.2024 14:24 1529960 DevExpress.Xpf.Printing.v23.1.dll
-a---- 21.02.2024 14:24 1793128 DevExpress.Xpf.Ribbon.v23.1.dll
-a---- 21.02.2024 14:24 2561640 DevExpress.Xpf.RichEdit.v23.1.dll
-a---- 21.02.2024 14:24 2706536 DevExpress.Xpf.Scheduling.v23.1.dll
-a---- 21.02.2024 14:24 3349608 DevExpress.Xpf.Spreadsheet.v23.1.dll
-a---- 21.02.2024 14:24 8727656 DevExpress.Xpf.Themes.DXStyle.v23.1.dll
-a---- 21.02.2024 14:24 8951400 DevExpress.Xpf.Themes.Office2007Silver.v23.1.dll
-a---- 21.02.2024 14:24 8805992 DevExpress.Xpf.Themes.Office2010Black.v23.1.dll
-a---- 21.02.2024 14:24 8806504 DevExpress.Xpf.Themes.Office2010Silver.v23.1.dll
-a---- 21.02.2024 14:24 229480 DevExpress.Xpf.TreeMap.v23.1.dll
-a---- 21.02.2024 14:24 2337896 DevExpress.Xpo.v23.1.dll
-a---- 21.02.2024 14:24 5210216 DevExpress.XtraCharts.v23.1.dll
-a---- 21.02.2024 14:24 1960040 DevExpress.XtraGauges.v23.1.Core.dll
-a---- 21.02.2024 14:24 4469864 DevExpress.XtraReports.v23.1.dll
-a---- 21.02.2024 14:24 1295464 DevExpress.XtraScheduler.v23.1.Core.Desktop.dll
-a---- 21.02.2024 14:24 643688 DevExpress.XtraScheduler.v23.1.Core.dll
-a---- 07.03.2024 10:25 4991352 EntityFramework.dll
-a---- 07.03.2024 10:25 591752 EntityFramework.SqlServer.dll
-a---- 05.10.2023 12:12 256032 EnvDTE.dll
-a---- 05.10.2023 12:12 145448 EnvDTE80.dll
-a---- 18.10.2022 07:30 15360 Iesi.Collections.dll
-a---- 18.10.2022 18:19 26752 Microsoft.Bcl.AsyncInterfaces.dll
-a---- 16.11.2020 22:15 23424 Microsoft.Bcl.HashCode.dll
-a---- 07.03.2024 10:25 8740464 Microsoft.ReportViewer.Common.dll
-a---- 07.03.2024 10:25 5422704 Microsoft.ReportViewer.DataVisualization.DLL
-a---- 07.03.2024 10:25 102000 Microsoft.ReportViewer.Design.DLL
-a---- 07.03.2024 10:25 126568 Microsoft.ReportViewer.ProcessingObjectModel.DLL
-a---- 07.03.2024 10:25 110184 Microsoft.ReportViewer.WebDesign.DLL
-a---- 07.03.2024 10:25 1875568 Microsoft.ReportViewer.WebForms.DLL
-a---- 07.03.2024 10:25 564848 Microsoft.ReportViewer.WinForms.DLL
-a---- 19.03.2024 17:53 392456 Microsoft.SqlServer.Types.dll
-a---- 03.06.2024 20:37 30720 MVVM Helpers.dll
-a---- 07.03.2024 10:25 787968 MySql.Data.dll
-a---- 07.03.2024 10:25 555008 Neodynamic.WinControls.BarcodeProfessional.dll
-a---- 08.03.2023 08:09 711952 Newtonsoft.Json.dll
-a---- 19.03.2024 17:53 3359232 NHibernate.dll
-a---- 17.03.2024 12:07 481 NLog.config
-a---- 29.12.2023 19:17 953344 NLog.dll
-a---- 07.03.2024 10:25 16958 ot.ico
-a---- 03.06.2024 20:50 5961 OT.System.application
-a---- 03.06.2024 20:50 5812192 OT.System.exe
-a---- 19.03.2024 17:53 4319 OT.System.exe.config
-a---- 03.06.2024 20:50 70333 OT.System.exe.manifest
-a---- 05.01.2024 15:21 458752 SimpleInjector.dll
-a---- 06.05.2021 16:41 25464 stdole.dll
-a---- 19.07.2017 12:01 27992 System.Buffers.dll
-a---- 15.05.2018 15:29 148624 System.Memory.dll
-a---- 19.07.2017 12:01 115936 System.Numerics.Vectors.dll
-a---- 19.02.2020 11:05 16768 System.Runtime.CompilerServices.Unsafe.dll
-a---- 19.02.2020 11:05 25984 System.Threading.Tasks.Extensions.dll
-a---- 03.06.2024 20:37 80384 WpfCustomControls.exe
Has anyone experienced a similar problem or can offer insights into what might be causing this remote installation failure? Any suggestions or guidance would be greatly appreciated.
Thank you in advance for your help!