ClickOnce安装出错

时间:2011-06-02 20:17:59

标签: wpf deployment clickonce

我正在进行ClickOnce部署,我收到以下错误:


ERROR DETAILS
    Following errors were detected during this operation.
    * [02/06/2011 22:15:29] System.Deployment.Application.InvalidDeploymentException (RefDefValidation)
        - Reference in the manifest does not match the identity of the downloaded assembly WPFAutoCompleteTextbox.exe.
        - Source: System.Deployment
        - Stack trace:
            at System.Deployment.Application.DownloadManager.ProcessDownloadedFile(Object sender, DownloadEventArgs e)
            at System.Deployment.Application.FileDownloader.DownloadModifiedEventHandler.Invoke(Object sender, DownloadEventArgs e)
            at System.Deployment.Application.FileDownloader.OnModified()
            at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
            at System.Deployment.Application.SystemNetDownloader.DownloadAllFiles()
            at System.Deployment.Application.FileDownloader.Download(SubscriptionState subState)
            at System.Deployment.Application.DownloadManager.DownloadDependencies(SubscriptionState subState, AssemblyManifest deployManifest, AssemblyManifest appManifest, Uri sourceUriBase, String targetDirectory, String group, IDownloadNotification notification, DownloadOptions options)
            at System.Deployment.Application.ApplicationActivator.DownloadApplication(SubscriptionState subState, ActivationDescription actDesc, Int64 transactionId, TempDirectory& downloadTemp)
            at System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState& subState, ActivationDescription actDesc)
            at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
            at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)

这是否意味着WPFAutoCompleteTextbox.exe不可用?

这是我的第一次ClickOnce部署。

1 个答案:

答案 0 :(得分:0)

部署后,您是否对文件进行了任何更改?编辑已部署的ClickOnce应用程序会使清单无效。

如果我没记错的话,可以通过使用mageui.exe打开应用程序和部署清单来解决此问题 - 您需要将部署清单与应用程序清单关联并对其进行签名(即使清单未在第一个中签名)地方,法师会让你在编辑时签名)