visual-studio-2019clickoncevb.net-2010

Problem Installing ClickOnce App VB.Net WinForm


I'm trying to install an application that I created in VB.Net VS2019, this app is an empty form with an icon on the form and no code at all.

Form to deploy

The app is being deployed to a shared drive.

When I execute the .exe or the .application the ClickOnce Installer is unable to download the icon of the form.

enter image description here

After a couple minutes waiting this are the errors I get:

Error 1

Error 2

TLDR: I cant install the application because I cant download the icon according to the error, similar apps can be installed without a problem, this happens only with new apps.

Things I've tried:

In addition I have other ClickOnce apps deployed in the same path just different folders and they all are working properly and I can install those without a problem.

I'm using same settings for every app deployed. enter image description here enter image description here enter image description here


Solution

  • I managed to solve the issue, the problem was that the icon that is used on the shortcut of the app was 66KB, and when I checked all the other app's icons they were like 2KB on average, when I swapped icons the application was installed immediately.

    TLDR: Icon was too heavy and the app was unable to download it. (66KB)

    Solution: change icons.