在发布我的 Orleans silo 项目时,我不断收到此错误(当我尝试安装已发布的文件时),我尝试了以下操作:
- 将属性设置为“创建没有清单的应用程序”
- 禁用“启用 ClickOnce 安全设置”
- 删除对“OrleansCounterControl.exe”的引用,然后它给出了相同的错误,但改为使用“Orleans.dll”。
- 我已经重新启动了项目,重新安装了依赖项,重新启动了计算机,并重建了项目。
我发现很多项目在引用他们的其他项目时都存在错误,但我很难找到任何与 NuGet Packages 相关的问题。
这是我尝试在 VS 中发布的第一个应用程序,所以它可能是一件我不知道的简单事情。
在调试模式下,它可以编译并且一切正常,没有错误。
当我尝试在下面安装我发布的程序时,我已经显示了我收到的错误消息。
PLATFORM VERSION INFO
Windows : 6.2.9200.0 (Win32NT)
Common Language Runtime : 4.0.30319.42000
System.Deployment.dll : 4.6.1087.0 built by: NETFXREL4STAGE
clr.dll : 4.6.1087.0 built by: NETFXREL4STAGE
dfdll.dll : 4.6.1087.0 built by: NETFXREL4STAGE
dfshim.dll : 6.3.9600.16384 (winblue_rtm.130821-1623)
SOURCES
Deployment url : file:///C:/SHMSSilo/SHMSSilo.application
Application url : file:///C:/SHMSSilo/Application%20Files/SHMSSilo_1_0_0_12/SHMSSilo.exe.manifest
IDENTITIES
Deployment Identity : SHMSSilo.application, Version=1.0.0.12, Culture=neutral, PublicKeyToken=0000000000000000, processorArchitecture=msil
Application Identity : SHMSSilo.exe, Version=1.0.0.12, Culture=neutral, PublicKeyToken=0000000000000000, processorArchitecture=msil, type=win32
APPLICATION SUMMARY
* Installable application.
ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of C:\SHMSSilo\SHMSSilo.application resulted in exception. Following failure messages were detected:
+ Reference in the manifest does not match the identity of the downloaded assembly OrleansCounterControl.exe.
COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.
WARNINGS
* The manifest for this application does not have a signature. Signature validation will be ignored.
* The manifest for this application does not have a signature. Signature validation will be ignored.
OPERATION PROGRESS STATUS
* [23-01-2018 11:29:49] : Activation of C:\SHMSSilo\SHMSSilo.application has started.
* [23-01-2018 11:29:49] : Processing of deployment manifest has successfully completed.
* [23-01-2018 11:29:49] : Installation of the application has started.
* [23-01-2018 11:29:49] : Processing of application manifest has successfully completed.
* [23-01-2018 11:29:52] : Found compatible runtime version 4.0.30319.
* [23-01-2018 11:29:52] : Request of trust and detection of platform is complete.
ERROR DETAILS
Following errors were detected during this operation.
* [23-01-2018 11:29:52] System.Deployment.Application.InvalidDeploymentException (RefDefValidation)
- Reference in the manifest does not match the identity of the downloaded assembly OrleansCounterControl.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)
COMPONENT STORE TRANSACTION DETAILS
No transaction information is available.