2015-04-22 51 views
2

我一直在环顾四周,其他人是如何解决这个错误,没有任何工作适合我。我想在我的应用程序,包括库来源于一个.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

感谢您的任何和所有帮助

回答

0

我知道这是旧的,但我看到有人只是upvoted的问题,所以我假设他们有同样的问题。

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

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

我希望有帮助。