ClickOnce 使用摘要

1.文件在<应用程序文件>窗体中不出现

  答:文件要包含在项目中,并且其属性窗口中,“生成操作”选项的值为“内容”

2.安装时提示错误,日志中显示类似如下信息

      执行此操作期间检测到下列错误。
 * [2010-11-25 15:45:43] System.Deployment.Application.InvalidDeploymentException (RefDefValidation)
  - 清单中的引用与下载的程序集 ****.***.exe 的标识不匹配。
  - 源: System.Deployment
  - 堆栈跟踪:
   在 System.Deployment.Application.DownloadManager.ProcessDownloadedFile(Object sender, DownloadEventArgs e)
   在 System.Deployment.Application.FileDownloader.DownloadModifiedEventHandler.Invoke(Object sender, DownloadEventArgs e)
   在 System.Deployment.Application.FileDownloader.OnModified()
   在 System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
   在 System.Deployment.Application.SystemNetDownloader.DownloadAllFiles()
   在 System.Deployment.Application.FileDownloader.Download(SubscriptionState subState)
   在 System.Deployment.Application.DownloadManager.DownloadDependencies(SubscriptionState subState, AssemblyManifest deployManifest, AssemblyManifest appManifest, Uri sourceUriBase, String targetDirectory, String group, IDownloadNotification notification, DownloadOptions options)
   在 System.Deployment.Application.ApplicationActivator.DownloadApplication(SubscriptionState subState, ActivationDescription actDesc, Int64 transactionId, TempDirectory& downloadTemp)
   在 System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState& subState, ActivationDescription actDesc)
   在 System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
   在 System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)

 答:在程序引用其它exe项目时发生此情况,有一种原因是这样的:被引用的exe项目属性中没有勾选以下选项“启用ClickOnce安全设置”

 

 ClickOnce 使用摘要_第1张图片

 

你可能感兴趣的:(click)