gpt4 book ai didi

c# - 部署 .NET 应用程序时出现 InvalidDeploymentException 错误

转载 作者:太空狗 更新时间:2023-10-29 23:48:44 28 4
gpt4 key购买 nike

我有两个项目: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)

关于如何解决这个问题有什么想法吗?

最佳答案

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

关于c# - 部署 .NET 应用程序时出现 InvalidDeploymentException 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2248314/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com