“清单中的引用与身份不符......”错误

时间:2015-04-22 20:00:49

标签: visual-studio visual-studio-2013

我一直在四处寻找其他人如何解决这个错误,对我来说没有任何作用。我试图在我的应用程序中包含的库来自.exe(PowerTool.exe),每当我尝试将应用程序安装到我的计算机或第三方计算机上时,我收到此错误:

PLATFORM VERSION INFO
    Windows             : 6.1.7601.65536 (Win32NT)
    Common Language Runtime     : 4.0.30319.34209
    System.Deployment.dll       : 4.0.30319.34244 built by: FX452RTMGDR
    clr.dll             : 4.0.30319.34209 built by: FX452RTMGDR
    dfdll.dll           : 4.0.30319.34244 built by: FX452RTMGDR
    dfshim.dll          : 4.0.41209.0 (Main.041209-0000)

SOURCES
    Deployment url          : file:///C:/Users/zmcpher/Desktop/Apps/BatteryAutomation/MyAccount%20Battery%20Automation.application
    Application url         : file:///C:/Users/zmcpher/Desktop/Apps/BatteryAutomation/Application%20Files/MyAccount%20Battery%20Automation_1_0_0_5/MyAccount%20Battery%20Automation.exe.manifest

IDENTITIES
    Deployment Identity     : MyAccount Battery Automation.application, Version=1.0.0.5, Culture=neutral, PublicKeyToken=fba777f97efbcb75, processorArchitecture=msil
    Application Identity        : MyAccount Battery Automation.exe, Version=1.0.0.5, Culture=neutral, PublicKeyToken=fba777f97efbcb75, 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:\Users\zmcpher\Desktop\Apps\BatteryAutomation\MyAccount Battery Automation.application resulted in exception. Following failure messages were detected:
        + Reference in the manifest does not match the identity of the downloaded assembly PowerTool.exe.

COMPONENT STORE TRANSACTION FAILURE SUMMARY
    No transaction error was detected.

WARNINGS
    There were no warnings during this operation.

OPERATION PROGRESS STATUS
    * [4/22/2015 12:43:19 PM] : Activation of C:\Users\zmcpher\Desktop\Apps\BatteryAutomation\MyAccount Battery Automation.application has started.
    * [4/22/2015 12:43:19 PM] : Processing of deployment manifest has successfully completed.
    * [4/22/2015 12:43:19 PM] : Installation of the application has started.
    * [4/22/2015 12:43:19 PM] : Processing of application manifest has successfully completed.
    * [4/22/2015 12:43:21 PM] : Found compatible runtime version 4.0.30319.
    * [4/22/2015 12:43:21 PM] : Request of trust and detection of platform is complete.

ERROR DETAILS
    Following errors were detected during this operation.
    * [4/22/2015 12:43:21 PM] System.Deployment.Application.InvalidDeploymentException (RefDefValidation)
        - Reference in the manifest does not match the identity of the downloaded assembly PowerTool.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)

COMPONENT STORE TRANSACTION DETAILS
    No transaction information is available.

我已经尝试更改清单,更改/删除引用,删除/重建,打开/关闭以及更改项目属性 - 似乎没有任何工作。

我错过了什么?在调试模式下程序运行正常,为什么不编译成安装文件?我正在使用VS2013

感谢您提供的任何帮助

1 个答案:

答案 0 :(得分:0)

我知道这已经过时了,但我看到有人刚刚提出这个问题,所以我假设他们遇到了同样的问题。

错误来自我试图与应用程序捆绑的exe文件。 exe文件本身是第三方exe,我认为这就是问题所在(即使我知道我过去已经捆绑了其他exe文件)。也许这个有一些写保护 - 我不知道。

无论如何,我如何解决它是从安装文件中取出exe并将文件单独包含在zip文件中。然后有一些关于exe文件需要去哪个文件夹的说明。只要他们按照说明操作,一切就像你捆绑它一样。

我希望有所帮助。