【问题标题】:InvalidDeploymentException error when deploying .NET Application部署 .NET 应用程序时出现 InvalidDeploymentException 错误
【发布时间】:2010-02-11 22:37:48
【问题描述】:

我有两个项目:InventarioProduccion Dampers,我添加了Inventario 作为对Produccion Dampers 的引用。当我发布Produccion Dampers 时,我没有收到错误,但是当我尝试安装时,我收到此错误:

Following errors were detected during this operation.
    * [2/11/2010 3:33:34 PM] System.Deployment.Application.InvalidDeploymentException (RefDefValidation)
        - Reference in the manifest does not match the identity of the downloaded assembly Inventario.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.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)

关于如何解决这个问题的任何想法?

【问题讨论】:

    标签: c# .net winforms deployment publishing


    【解决方案1】:

    作为参考包含的项目 (Inventario) 根本没有签名,使用相同的证书对其进行签名。因为另一个项目(Produccion Dampers)解决了这个问题......

    【讨论】:

      猜你喜欢
      • 2010-09-30
      • 2017-05-22
      • 2013-01-18
      • 2017-02-04
      • 2013-02-15
      • 2015-08-08
      • 1970-01-01
      • 2018-11-23
      • 2021-12-06
      相关资源
      最近更新 更多