Troubleshoot specific errors in ClickOnce deployments

This article introduces common errors that can occur when you deploy ClickOnce application, and provides steps to resolve each problem.

General errors

When you try to locate an application file, nothing occurs, or XML renders in Internet Explorer, or you receive a Run or Save As dialog box

The possible reason for this error is that content types (also known as MIME types) not being registered correctly on the server or client.

First, make sure that the server is configured to associate the .application extension with content type "application/x-ms-application".

If the server is configured correctly, check that the .NET Framework 2.0 is installed on your computer. If the .NET Framework 2.0 is installed, and you're still seeing this problem, try uninstalling and reinstalling the .NET Framework 2.0 to re-register the content type on the client.

Error: "Unable to retrieve application. Files missing in deployment" or "Application download has been interrupted, check for network errors and try again later"

This message indicates that one or more files that the ClickOnce manifests reference can't be downloaded. The easiest way to debug this error is to try to download the URL that ClickOnce says it can't download. Here are some possible causes:

Download error when you try to install a ClickOnce application that has a .config file

By default, a Visual Basic Windows-based application includes an App.config file. You may encounter a problem if you try to install from a Web server that uses Windows Server 2003, because that operating system blocks the installation of .config files for security reasons. To enable the .config file to be installed, select Use ".deploy" file extension in the Publish Options dialog box.

You also must set the content types (also known as MIME types) appropriately for .application, .manifest, and .deploy files. For more information, see your Web server documentation.

Error: Application is improperly formatted; Log file contains "XML signature is invalid"

Ensure that you updated the manifest file and signed it again. Republish your application by using Visual Studio or use Mage to sign the application again.

You updated your application on the server, but the client doesn't download the update

This problem might be solved by completing one of the following tasks:

During update, you receive an error that has the following log entry: "The reference in the deployment does not match the identity defined in the application manifest"

This error may occur because you've manually edited the deployment and application manifests, and have caused the description of the identity of an assembly in one manifest to become out of sync with the other. The identity of an assembly consists of its name, version, culture, and public key token. Examine the identity descriptions in your manifests, and correct any differences.

First time activation from local disk or CD-ROM succeeds, but subsequent activation from Start Menu doesn't succeed

ClickOnce uses the Deployment Provider URL to receive updates for the application. Verify that the location that the URL is pointing to is correct.

Error: Cannot start the application

This error message usually indicates that there's a problem installing this application into the ClickOnce store. Either the application has an error or the store is corrupted. The log file might tell you where the error occurred.

To resolve this issue, follow these steps:

  1. Make sure that the identity of the deployment manifest, identity of application manifest, and identity of the main application EXE are all unique.
  2. Make sure that your file paths aren't longer than 100 characters. If your application contains file paths that are too long, you may exceed the limitations on the maximum path you can store. Try shortening the paths and then reinstall.

PrivatePath settings in application config file aren't honored

To use PrivatePath (Fusion probing paths), the application must request full trust permission. Try changing the application manifest to request full trust, and then try again.

During uninstall a message appears saying, "Failed to uninstall application"

This message usually indicates that the application has already been removed or the store is corrupted. After you select OK, the Add/Remove Program entry will be removed.

During installation, a message appears that says the platform dependencies are not installed

You're missing a prerequisite in the GAC (global assembly cache) that the application needs in order to run.

Publishing with Visual Studio

Publishing in Visual Studio fails

Ensure that you have the right to publish to the server that you're targeting. For example, if you're logged in to a terminal server computer as an ordinary user, not as an administrator, you probably won't have the rights required to publish to the local Web server.

If you're publishing with a URL, ensure that the destination computer has FrontPage Server Extensions enabled.

Error: Unable to create the Web site ''. The components for communicating with FrontPage Server Extensions are not installed

Ensure that you have the Microsoft Visual Studio Web Authoring Component installed on the machine that you're publishing from. For Express users, this component isn't installed by default.

Error: Could not find file 'Microsoft.Windows.Common-Controls, Version=6.0.0.0, Culture=*, PublicKeyToken=6595b64144ccf1df, ProcessorArchitecture=*, Type=win32'

This error message appears when you attempt to publish a WPF application with visual styles enabled. To resolve this issue, see How to: Publish a WPF Application with Visual Styles Enabled.

Using Mage

You tried to sign with a certificate in your certificate store and a received blank message box

In the Signing dialog box, you must:

  1. Select Sign with a stored certificate.
  2. Select a certificate from the list; the first certificate isn't the default selection.

Clicking the "Don't Sign" button causes an exception

This issue is a known bug. All ClickOnce manifests are required to be signed. Just select one of the signing options, and then select OK.

More errors

The following table shows some common error messages that a client-computer user may receive when the user installs a ClickOnce application. Each error message is listed next to a description of the most probable cause for the error.

Application validation did not succeed. Unable to continue.

To resolve this error, you can do one of the following tasks:

References