Hi
I have the following Windows forms application which is used to publish by ClickOnce technology.
When I publish the application with "Install Mode and Settings: This application is available online only". The setup.exe is generated in publish folder.
The content of publish folder is hosted to the web server which belongs to the Finance area.
I downloaded setup.exe from the browser and then I clicked it and I got the following message: Error: An error occurred trying to download hhttps://www.example.com/myAPP/App.application
I also have the information the information of URLDownloadToCacheFile failed wi HRESULT '-2146697208'
This error happened in a PC from Accouting Area. This area has its own network topology/firewall/waf/antivirus and its own Active Directory policies
Even though, I executed in cmd:
curl -o /dev/null -s -w "%{http_code}\n" -k https://www.example.com/myAPP/App.application
It returns 200
curl -o "C:\Users\john\AppData\Local\Apps\2.0" https://www.example.com/myAPP/App.application
It saves the file.
The execution of setup.exe works well in a PC from Finance Area. This area has its own network and its own Active Directory policies
The execution of setup.exe works also well at my home where there's no restriction
If the application is published as "Install Mode and Settings: This application is available offline as well", the execution of setup.exe works well for both areas and my home.
I could conclude that the deployment is not working because of policies/permissions in the Accounting Area.
Questions:
Why is there a downloading error for 'This application is available online only' mode?
How does clickonce setup.exe perform the downloading of https://www.example.com/myAPP/App.application? This is for understanding its process?