部署中的引用与应用程序清单中定义的标识不匹配。 [英] Reference in the deployment does not match the identity defined in the application manifest.

查看:366
本文介绍了部署中的引用与应用程序清单中定义的标识不匹配。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用VSTS任务设置clickonce包生成。



签名本身有效,但在安装应用程序时会出现此错误。不说清单中的哪个部分有问题。


关于我如何调试这个的任何指示?



IDENTITIES

部署标识
:MigrationTool.application,Version = 1.0.0.0 ,Culture = neutral,PublicKeyToken = a8eee8aa09b0c4a7,processorArchitecture = msil



应用摘要

*可安装的应用程序。



错误摘要

以下是错误摘要,这些错误的详细信息将在后面的日志中列出。

*激活C:\用户\abc \Downloads \ MigrationTool.application导致异常。检测到以下失败消息:
$
+部署中的引用与应用程序清单中定义的标识不匹配。 



组件商店交易失败摘要

未检测到交易错误。



警告

此操作期间没有警告。 />


操作进度状态

* [6/19/2018 4: 56:50 PM]:激活C:\Users\abc \Downloads \ MigrationTool.application已经开始。

* [6/19/2018 4:56:51 PM]:部署清单的处理已成功完成。

* [ 6/19/2018 4:56:51 PM]:已开始安装应用程序。



错误详情

在此操作过程中检测到以下错误。

* [6/19/2018 4: 56:51 PM] System.Deployment.Application.InvalidDeploymentException(SubscriptionSemanticValidation)

- 部署中的引用与定义的标识不匹配在应用程序清单中。 

- 来源:System.Deployment

- 堆栈跟踪:

在System.Deployment.Application.DownloadManager.DownloadApplicationManifest( AssemblyManifest deploymentManifest,String targetDir,Uri deploymentUri,IDownloadNotification notification,DownloadOptions options,Uri&
appSourceUri,String&在System.Deployment.Application.ApplicationActivator.DownloadApplication(SubscriptionState subState,ActivationDescription actDesc,Int64 transactionId,TempDirectory& downloadTemp)中的$ app
在System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState& subState,ActivationDescription actDesc)中,


System.Deployment.Application.Application.ApplicationActivator.PerformDeploymentActivation中的 (Uri activationUri,Boolean isShortcut,String textualSubId,String deploymentProviderUrlFromExtension,BrowserSettings browserSettings,String&
errorPageUrl, System.Deployment.Application.ApplicationActivator.PerformDeploymentActivationWithRetry(Uri activationUri,Boolean isShortcut,String textualSubId,String deploymentProviderUrlFromExtension)中的$
,兄弟wserSettings browserSettings,
String& errorPageUrl)
$
---从抛出异常的上一个位置开始的堆栈跟踪结束---

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

在System.Deployment.Application.ApplicationActivator.PerformDeploymentActivationWithRetry(Uri activationUri) ,Boolean isShortcut,String textualSubId,String deploymentProviderUrlFromExtension,BrowserSettings browserSettings,
String& errorPageUrl)

System.Deployment中的 。 Application.ApplicationActivator.ActivateDeploymentWorker(Object state)



COMPONENT STORE TRANSACTION DETAILS

没有可用的交易信息。




FAS

解决方案

您好FAS,


>>"部署中的参考与识别不匹配应用程序清单中定义的tity。 "


我担心这是一个常见的错误。以下是
MSDN文档


由于您已手动编辑部署和应用程序清单,并且已导致对身份的描述,因此可能会发生此错误一个清单中的程序集与另一个清单不同步。程序集的标识包括名称,版本,文化和公钥标记的
。检查清单中的身份描述,并纠正任何差异。


最好的问候,


Frankie


I am trying to setup clickonce package generation using a VSTS task.

The signing itself works, but when installing the application, it gives this error. Doesnt say what section in the manifest is at fault here.

Any pointers on how I can debug this ?

IDENTITIES
Deployment Identity : MigrationTool.application, Version=1.0.0.0, Culture=neutral, PublicKeyToken=a8eee8aa09b0c4a7, processorArchitecture=msil

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:\Users\abc\Downloads\MigrationTool.application resulted in exception. Following failure messages were detected:
+ Reference in the deployment does not match the identity defined in the application manifest. 

COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.

WARNINGS
There were no warnings during this operation.

OPERATION PROGRESS STATUS
* [6/19/2018 4:56:50 PM] : Activation of C:\Users\abc\Downloads\MigrationTool.application has started.
* [6/19/2018 4:56:51 PM] : Processing of deployment manifest has successfully completed.
* [6/19/2018 4:56:51 PM] : Installation of the application has started.

ERROR DETAILS
Following errors were detected during this operation.
* [6/19/2018 4:56:51 PM] System.Deployment.Application.InvalidDeploymentException (SubscriptionSemanticValidation)
- Reference in the deployment does not match the identity defined in the application manifest. 
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.DownloadManager.DownloadApplicationManifest(AssemblyManifest deploymentManifest, String targetDir, Uri deploymentUri, IDownloadNotification notification, DownloadOptions options, Uri& appSourceUri, String& appManifestPath)
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, Uri& deploymentUri)
at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivationWithRetry(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivationWithRetry(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.


FAS

解决方案

Hi FAS,

>>"Reference in the deployment does not match the identity defined in the application manifest. "

I'm afraid it is a common error. Here is a fix from MSDN document.

This error may occur because you have manually edited the deployment and application manifests, and have caused the description of the identity of an assembly in one manifest to become out of sync with the other. The identity of an assembly consists of its name, version, culture, and public key token. Examine the identity descriptions in your manifests, and correct any differences.

Best Regards,

Frankie


这篇关于部署中的引用与应用程序清单中定义的标识不匹配。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆