【发布时间】:2011-03-31 10:31:45
【问题描述】:
如何打开从 Internet 下载的 .xbap 文件? 许多控件供应商网站提供下载 .xbap 文件以显示 WPF 控件,但我无法打开它们。 Internet Explorer 产生错误:
http://img28.imageshack.us/i/capturenxs.png/
错误日志:
错误详情 在此操作期间检测到以下错误。 * [2011 年 3 月 31 日下午 2:23:10] System.Deployment.Application.InvalidDeploymentException(ManifestParse) - 从 file:///E:/Downloads/ControlExplorer.xbap 读取清单时出现异常:清单可能无效或无法打开文件。
来源:System.Deployment - 堆栈跟踪: 在 System.Deployment.Application.ManifestReader.FromDocument(字符串 localPath,ManifestType manifestType,Uri sourceUri) 在 System.Deployment.Application.DownloadManager.DownloadDeploymentManifestDirect(SubscriptionStore subStore、Uri& sourceUri、TempFile& tempFile、IDownloadNotification 通知、DownloadOptions 选项、ServerInformation& serverInformation) 在 System.Deployment.Application.DownloadManager.DownloadDeploymentManifest(SubscriptionStore subStore、Uri& sourceUri、TempFile& tempFile、IDownloadNotification 通知、DownloadOptions 选项) 在 System.Deployment.Application.DeploymentManager.BindCore(布尔阻塞、TempFile& tempDeploy、TempDirectory& tempAppDir、FileStream& refTransaction、String& productName) 在 System.Deployment.Application.DeploymentManager.BindAsyncWorker() --- 内部异常 --- System.Deployment.Application.InvalidDeploymentException (SignatureValidation) - 清单 XML 签名无效。
来源:System.Deployment - 堆栈跟踪: 在 System.Deployment.Application.Manifest.AssemblyManifest.ValidateSignature(Stream s) 在 System.Deployment.Application.ManifestReader.FromDocument(字符串 localPath,ManifestType manifestType,Uri sourceUri) --- 内部异常 --- System.Security.Cryptography.CryptographicException - 主题中没有签名。
来源:System.Deployment - 堆栈跟踪: 在 System.Deployment.Internal.CodeSigning.SignedCmiManifest.Verify(CmiManifestVerifyFlags verifyFlags) 在 System.Deployment.Application.Manifest.AssemblyManifest.ValidateSignature(Stream s)
【问题讨论】: