question

NMarkGraves avatar image
1 Vote"
NMarkGraves asked PeterWelsh-1737 commented

"clickonce cannot download the application. the application is missing required files. contact application vendor for assistance"

This is Visual Studio 2017.

Are there any plans to fix this issue, or document a workaround? Is ClickOnce no longer supported?

dotnet-csharp is the wrong tag, but I'm required to enter a tag, and there's no tag for ClickOnce.

dotnet-csharp
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

That's not true and you know it.

This is a bug in ClickOnce. Are you telling me it will not be fixed? Thanks.

ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of C:\Users\me\Downloads\myapp.application resulted in exception. Following failure messages were detected:
+ Downloading file:///C:/Users/me/Downloads/myapp.application did not succeed.
+ Could not find file 'C:\Users\me\Downloads\myapp.application'.
+ Could not find file 'C:\Users\me\Downloads\myapp.application'.
+ Could not find file 'C:\Users\me\Downloads\myapp.application'.

PS. I checked and ClickOnce did deploy all required files.

0 Votes 0 ·

Hi @NMarkGraves,
When you publish an application you need to install/run the application using YourApp.application from your publish folder.
If you run the YourApp.application that is located in your debug/release folder, You will also receive the error you described at the beginning.
If there are still errors, please describe in detail the specific steps you take to release the program using clickonce.
Best Regards,
Daniel Zhang

0 Votes 0 ·

I just had this problem and the solution for me was pretty straightforward and a simple yet frustrating oversight.

In the publishing wizard there are two directories required. The first is where to publish the application to and the second is where to install the application from. In my case the first was set to Y:\<dir>\<appname>. The second was set to \\Share\<dir>. The second should have been set to \\Share\<dir>\<appname> also. Pretty easy mistake to make and annoying to solve.





0 Votes 0 ·
DanielZhang-MSFT avatar image
0 Votes"
DanielZhang-MSFT answered

Hi NMarkGraves,
This error occurs when one or more files listed in the application manifest cannot be found on the server. You can open the application manifest in a text editor and verify that you have uploaded all relevant files for deployment.
You can also try to clear the clickonce cache and reinstall.
And here some related documents you can refer to.
How to: Set a Custom Log File Location for ClickOnce Deployment Errors
Troubleshooting Specific Errors in ClickOnce Deployments
Best Regards,
Daniel Zhang


If the response is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

TimR-8080 avatar image
0 Votes"
TimR-8080 answered

I have been deploying WinForms applications using ClickOnce for 15 years. I am getting the same error when using Edge v92. Our networking team has enabled ClickOnce for Edge in Group Policy (see RSOP screencapture) but Edge is nonetheless trapping the setup.exe when the user clicks the "Run" button on the web page that is deployed by Visual Studio to the UNC path. The user must click on the [...] button and choose "keep" (see screen capture). Then, when the user clicks on the downloaded setup.exe file, the installation is terminated with the error reported by the original poster above, and when the Details button is clicked, the details show that the ClickOnce installer was looking for the app.application file in the Downloads folder and not finding it there. So this would appear to be the SmartScreen security interfering with ClickOnce. Edge is still downloading the file as a "normal download" rather than as an application to be installed. How to stop that interference so that ClickOnce can proceed?

System.IO.FileNotFoundException
Could not find file 'C:\Users\foo\Downloads\TestApp.application'.



120805-capture.png

120881-rsop75.png





capture.png (20.9 KiB)
rsop75.png (58.8 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.