gpt4 book ai didi

c# - 强名称签名对此程序集 stdole.dll 无效

转载 作者:太空狗 更新时间:2023-10-30 00:49:42 24 4
gpt4 key购买 nike

我刚刚开始在我的 ClickOnce 应用程序中遇到以下错误。安装和运行相同的应用程序时,看似安装成功后我收到一条错误消息:

Application Validation did not succeed

我可以看到问题的错误详细信息:

Strong name signature not valid for this assembly stdole.dll.

当我点击详细信息时,我得到

ERROR DETAILS Following errors were detected during this operation. * [04/13/2016 11:33:22 AM] System.Deployment.Application.InvalidDeploymentException (SignatureValidation) - Strong name signature not valid for this assembly stdole.dll. - Source: System.Deployment - Stack trace: at System.Deployment.Application.ComponentVerifier.VerifyStrongNameAssembly(String filePath, AssemblyManifest assemblyManifest) at System.Deployment.Application.ComponentVerifier.VerifyComponents() 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)

最佳答案

嘿不知道你是否还没有弄清楚问题,但请引用这篇文章:strong-name-signature-not-valid-for-this-assembly-stdole-dll并根据您使用的 Visual Studio 版本应用它。

问题是 ClickOnce 应用程序正在尝试使用 stdole dll 的未签名版本,但您需要对其进行签名。

来自网页的详细信息:

  1. 打开路径“C:\Program Files (x86)\Microsoft Visual Studio 9.0\Visual Studio Tools for Office\PIA\Office11”和“C:\Program Files (x86)\Microsoft Visual Studio 9.0\Visual” Studio Tools for Office\PIA\Office12”,其中有 stdole.dll 文件,大小为 16kb,未签名

  2. 打开路径“C:\Program Files (x86)\Microsoft.NET\Primary Interop Assemblies”,里面有文件 stdole.dll,大小为 25kb 并已签名

  3. 将未签名的 dll 替换为已签名的 dll 并再次发布

关于c# - 强名称签名对此程序集 stdole.dll 无效,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36590655/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com