This article introduces common errors that can occur when you deploy ClickOnce application, and provides steps to resolve each problem.
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.
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:
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.
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.
This problem might be solved by completing one of the following tasks:
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.
ClickOnce uses the Deployment Provider URL to receive updates for the application. Verify that the location that the URL is pointing to is correct.
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:
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.
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.
You're missing a prerequisite in the GAC (global assembly cache) that the application needs in order to run.
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.
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.
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.
In the Signing dialog box, you must:
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.
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: