当前位置: 首页 > 知识库问答 >
问题:

清单可能无效或文件无法打开。

夏侯渊
2023-03-14

我知道这是一个很常见的问题。但是,有一个微小的区别,我的WPF安装完美,并运行在Windows7和Windows8操作系统上。但是,当试图在运行Windows XP的VM上安装时,会出现以下错误:

无法继续。应用程序的格式不正确。详情:

Windows             : 5.1.2600.196608 (Win32NT)
    Common Language Runtime     : 4.0.30319.1
    System.Deployment.dll       : 4.0.30319.1 (RTMRel.030319-0100)
    clr.dll             : 4.0.30319.1 (RTMRel.030319-0100)
    dfdll.dll           : 4.0.30319.1 (RTMRel.030319-0100)
    dfshim.dll          : 4.0.31106.0 (Main.031106-0000)

SOURCES
    Deployment url          : file:///S:/K3FrontEnd_NET4/Karacell3.application
* Activation of S:\K3FrontEnd_NET4\Karacell3.application resulted in exception. Following failure messages were detected:
        + Exception reading manifest from file:///S:/K3FrontEnd_NET4/Karacell3.application: the manifest may not be valid or the file could not be opened.
        + Manifest XML signature is not valid.
        + SignatureDescription could not be created for the signature algorithm supplied.

COMPONENT STORE TRANSACTION FAILURE SUMMARY
    No transaction error was detected.

WARNINGS
    There were no warnings during this operation.

OPERATION PROGRESS STATUS
    * [4/3/2013 2:58:13 PM] : Activation of S:\K3FrontEnd_NET4\Karacell3.application has started.

ERROR DETAILS
    Following errors were detected during this operation.
    * [4/3/2013 2:58:14 PM] System.Deployment.Application.InvalidDeploymentException (ManifestParse)
        - Exception reading manifest from file:///S:/K3FrontEnd_NET4/Karacell3.application: the manifest may not be valid or the file could not be opened.
        - Source: System.Deployment
        - Stack trace:
            at System.Deployment.Application.ManifestReader.FromDocument(String localPath, ManifestType manifestType, Uri sourceUri)
            at System.Deployment.Application.DownloadManager.DownloadDeploymentManifestDirectBypass(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, SubscriptionState& subState, IDownloadNotification notification, DownloadOptions options, ServerInformation& serverInformation)
            at System.Deployment.Application.DownloadManager.DownloadDeploymentManifestBypass(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, SubscriptionState& subState, IDownloadNotification notification, DownloadOptions options)
            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)
        --- Inner Exception ---
        System.Deployment.Application.InvalidDeploymentException (SignatureValidation)
        - Manifest XML signature is not valid.
        - Source: System.Deployment
        - Stack trace:
            at System.Deployment.Application.Manifest.AssemblyManifest.ValidateSignature(Stream s)
            at System.Deployment.Application.ManifestReader.FromDocument(String localPath, ManifestType manifestType, Uri sourceUri)
        --- Inner Exception ---
        System.Security.Cryptography.CryptographicException
        - SignatureDescription could not be created for the signature algorithm supplied.
        - Source: System.Security
        - Stack trace:
            at System.Security.Cryptography.Xml.SignedXml.CheckSignedInfo(AsymmetricAlgorithm key)
            at System.Security.Cryptography.Xml.SignedXml.CheckSignature(AsymmetricAlgorithm key)
            at System.Security.Cryptography.Xml.SignedXml.CheckSignatureReturningKey(AsymmetricAlgorithm& signingKey)
            at System.Deployment.Internal.CodeSigning.SignedCmiManifest.Verify(CmiManifestVerifyFlags verifyFlags)
            at System.Deployment.Application.Manifest.AssemblyManifest.ValidateSignature(Stream s)

组件存储事务处理详细信息

没有可用的交易信息。

  • 我用有效密钥重新签名了应用程序
  • 我已在多台PC上安装,安装和工作都很好。

共有1个答案

容磊
2023-03-14

我可以通过删除清单的签名来解决我的问题。
如果右键单击项目并转到属性,然后转到签名选项卡;取消选中对ClickOnce清单签名并对程序集签名。
我不确定这在安全性方面有什么作用,但我的应用程序是在删除这些选项后安装的。

 类似资料:
  • 问题内容: 当我在Tomcat上执行display.war文件时,我在Catalina.2011-03-30.log中收到此错误。错误如下所示: 提前致谢。 问题答案: 不幸的是,原因和解决方案并不像Buhake Sindi所建议的 那么 明显。我之前在几个论坛中都多次看到此问题。我自己至少经历过一次。Google目前对确切的异常消息给出了500多次匹配。一切都没有答案。但是,有一些提示表明它可以

  • 我有2个版本的Androidanifest.xml文件在我的项目,一个是主要的,另一个调试。 通过gradle添加了一个库之后,我突然看到: 错误:任务执行失败:应用程序:进程MobileDebugManiast。 清单合并失败:属性application@labelvalue=(XXXX Debug)来自Androidanifest.xml:36: 13-45也存在于[library_name]

  • 操作系统:Windows 7 64位,使用Visual Studio Pro 2012并安装。NET 4.5。 我在Visual Studios中使用了Publish选项,并确保单击了对clickOnce清单签名和对程序集签名。它仍然不会在另一台计算机上运行,并表示我没有有效的XML签名。我已经在下面粘贴了错误消息。 我还阅读了:如何移动ClickOnce部署包,我必须签署我的ClickOnce清

  • 问题内容: 编译了libjpeg v8,PIL 1.1.7,并为_imaging导入了在系统Python上的作品,但是在virtualenv内喷出了此错误: 这是在virtualenv中使用python -v解释器运行的错误 这是路径: 我正在使用Ubuntu 10.10,这是uname-a输出: 我正在使用Python 2.6 我已经遵循以下指南: http://appelfreelance.c

  • 主要内容:先说一下PDB文件是什么,如何修复这个错误有时候,我们使用 VS(Visual Studio)编译程序时会出现“无法查找或打开PDB文件”的提示,并且此时程序会生成失败,无法运行,如下图所示: 大家不要惊慌,出现这种提示并不是代码写错了,而是编译器设置的问题,改一下设置就 OK 了。 先说一下PDB文件是什么 当程序在 VS 上编译时,程序所依赖的所有动态链接库(dll 文件)也会被编译,编译过程中每个 dll 都会产生一个pdb文件,又

  • 我将SVN 1.7与PHPStom项目一起使用,今天我在我的项目中创建了一个js文件,然后在我删除它之后不久。我后来又创建了它,但我根本无法打开它。 它的文件名旁边有一个小问号,如果我尝试在PHPStorm中打开它,什么都不会发生。(我可以在它旁边创建具有相同扩展名的新文件,它们没有这个问题)。 我可以使用外部工具(记事本等)打开它,也可以从PHPStorm中删除它。 使用我的SVN存储库的其他人