deployment-tools icon indicating copy to clipboard operation
deployment-tools copied to clipboard

Clickonce error message mangles link to URL Error property

Open statler opened this issue 1 year ago • 5 comments

Description

When there is a problem with the clickonce app, the following window is displayed, which links to the app's publish property for Error URL (which doesn't seem to be documented AFAICT). image

The URL is mangled and clicking it fails to open the URL.

It attempts to open something like %22https//anapp.zendesk.com/hc/en-au/requests/new?outer=System.Deployment.Application.DeploymentDownloadException&&inner=System.IO.DirectoryNotFoundException&&msg=Could%20not%20find%20a%20part%20of%20the%20path%20%27C:\Users\dennisg\Downloads\Application%20Files\Civil%20Pro%20Online%20-%20Test_12_115_1_354\Civil%20Pro%20Online%20-%20Test.dll.manifest%27.%22)//civilpro.zendesk.com/hc/en-au/requests/new?outer=System.Deployment.Application.DeploymentDownloadException&&inner=System.IO.DirectoryNotFoundException&&msg=Could%20not%20find%20a%20part%20of%20the%20path%20%27C:\Users\dennisg\Downloads\Application%20Files\Civil%20Pro%20Online%20-%20Test_12_115_1_354\Civil%20Pro%20Online%20-%20Test.dll.manifest%27.%22

The principle problem is the %22 in front of the URL, and the missing : between https and //

This is correctly specified in my clickonce Publish Options

statler avatar Mar 31 '23 01:03 statler

This seems like an issue with ClickOnce runtime. cc @Tanya-Solyanik @dreddy-work

NikolaMilosavljevic avatar May 30 '23 17:05 NikolaMilosavljevic

@statler - is this a recent regression?

Tanya-Solyanik avatar May 30 '23 19:05 Tanya-Solyanik

Sorry for the late reply - I am not sure. I have not really paid attention to it before.

statler avatar Jul 11 '23 02:07 statler

@statler - what is the intended URL in your publish options? What version of VS is this? @John-Hart - FYI.

Tanya-Solyanik avatar Jul 12 '23 02:07 Tanya-Solyanik

Latest VS2022 community. The intended URL is the URL specified in the pubxml. It doesn't matter what URL is used, it should just be accurately rendered in the clickonce message. There is no customization going on here.

<ErrorReportUrl>https://civilpro.zendesk.com/hc/en-au/requests/new</ErrorReportUrl>

statler avatar Jul 12 '23 03:07 statler