tags:

views:

815

answers:

3

My ClickOnce app gives an error for a user: "Cannot download the application. The application is missing required files. Contact the application vendor or your system administrator for assistance."

How can I pinpoit which file is missing? Do I manually need to put files on the publishing server?

I thought when I click on the prerequisities and set the option to download the prerequisites from the component vendor's web site and set to include components, ClickOnce would include all of them. Looks like I am missing something. How do I know what it is. Manually going through the manifest is going to be time consuming.

A: 

Is there a "details" button when the error pops up? Usually there is a stack trace in there where you can see which particular file it is trying to download. Post that info here if you can.

Matt Bridges
In the error summary, the line below shows a few times. However it's showing the name of the app (xxx.aplication) and the path is not the publishing server. The error doesn't tell me much. It only tells me the app doesn't exist on the user's machine. The question now is why not? Why ClickOnce failed to copy the files to the user's machine... + Could not find file 'C:\Documents and Settings\xxxxxx\Local Settings\Temporary Internet Files\Content.IE5\O220G6MA\someAppName.application'.
Tony_Henrich
+1  A: 

ClickOnce is famous for displaying errors that have no relation whatsoever to the actual problem. If the problem is confined to a single user (which is what it sounds like), I typically first try clearing out the user's ClickOnce cache by deleting the %user_profile%\Local Settings\Apps\ directory. This will solve 80% of those "Contact application vendor..." errors and is relatively low impact on the user's PC. They will simply have to re-download all of their .NET apps.

James Jones
+1  A: 

What I usually find on these issues is it's related to a dependency that is set as "Include (Auto)" instead of just Include. It will work on some machines but not on others just depending on what DLLs are already installed on the destination machine.

Files to include Open up the Publish tab of your project properties and click on the "Application Files" and then inspect which DLLs are set to "Include (Auto)." You may need to change some of them to the standard "Include" for things that are installed into the GAC on your machine. Visual Studio will make some assumptions based on your machine's configuration.

Log File Another thing to check is usually the error message will reference a text log file. I don't believe it links it in any way so you'll have to browse out to it. But find that file and it should give you some more information.

Certificate Errors One problem that I have seen is if the SSL certificate that is installed on the server is not trusted on the machine you are attempting to install it on. I find this often for the GoDaddy SSL certifications since they are not always installed on machines who don't frequently use Windows Update.

Nathan Palmer