【问题标题】:Clickonce messagebox on install: Strong name signature not valid for assembly microsoft.mshtml.dll安装时单击一次消息框:强名称签名对程序集 microsoft.mshtml.dll 无效
【发布时间】:2013-12-02 16:10:54
【问题描述】:

我刚刚开始在 clickonce 应用程序中遇到以下错误。在此“应用程序验证未成功。无法继续。

之前,我刚刚在我的机器上安装了 Visual Studio 2013

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

Activation of C:\Temp\ClickOnce\myApp\myApp.application resulted in exception.
Following failure messages were detected:
Strong name signature not valid for this assembly Microsoft.mshtml.dll.

我也收到两个警告,但我不认为它们是问题的原因

  • 此应用程序的清单没有签名。签名验证将被忽略。
  • 此应用程序的清单没有签名。签名验证将被忽略。

错误详情被列为

ERROR DETAILS
    Following errors were detected during this operation.
    * [02/12/2013 15:54:31] System.Deployment.Application.InvalidDeploymentException (SignatureValidation)
        - Strong name signature not valid for this assembly Microsoft.mshtml.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)

我没有签署 clickonce 清单。选中“启用 clickonce 安全设置”。 “这是一个完全信任的应用程序”被选中

【问题讨论】:

    标签: clickonce


    【解决方案1】:

    我把这个整理好了。我必须做的是进入我的项目右键单击,添加对 go 程序集的引用 - 扩展,并且在 Microsoft.mshtml 下列出了两个 dll 文件。我在他们每个人上盘旋,看到一个人的路径是

    c:/program files/Microsoft.NET/Primary Interop Assemblies/Microsoft.html.dll
    

    c:/program files/Microsoft Visual Studio 12.0/Visual Studio Tools For Office/PIA/Common/Microsoft.mshtml.dll.
    

    我的项目的引用是 Visual Studio 中的第二个引用 - 我将引用更改为项目属性下的 Primary Interop Assemblies 中的引用我转到发布选项卡并单击我设置发布状态以包含的应用程序文件。然后我转到项目属性/引用并双击 microsoft.mshtml 以打开其属性,我将“嵌入互操作类型”设置为 false 并将“本地复制”设置为 true(因为本地复制已灰显为 false)。

    在此之后,我将它上传到我的 clickonce 服务器并能够下载并安装它。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-11-06
      • 2018-11-24
      • 1970-01-01
      相关资源
      最近更新 更多