在发布我的Orleans silo项目时,我不断收到此错误(当我尝试安装已发布的文件时),我尝试了以下内容:
我发现很多项目描述了这个错误并且引用了他们的其他项目,但是我很难找到任何有关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.
答案 0 :(得分:0)
我最终遵循了谢尔盖·沃林的建议,并删除了存在问题的NuGet软件包中的清单。
我找到了一个名为“Anolis Resourcer”的工具,它可以删除可执行文件中的清单。从OrleansCounterControl.exe和OrleansHost.exe中删除清单