VSTO Excel 2007插件无法从网络共享安装

时间:2011-03-07 17:44:14

标签: .net excel clickonce vsto

我有一个VSTO插件,我在网络共享上发布。在我的公司,每个人都可以从网络共享安装和更新此应用程序。在域外,我无法安装此自定义。我收到以下错误:

Installation error screenshot

详细说明:

************** Exception Text **************
System.Security.SecurityException: Customized functionality in this application will not work because the certificate used to sign the deployment manifest for flow or its location is not trusted. Contact your administrator for further assistance.
   at Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInTrustEvaluator.VerifyTrustPromptKeyInternal(ClickOnceTrustPromptKeyValue promptKeyValue, DeploymentSignatureInformation signatureInformation, String productName)
   at Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInTrustEvaluator.VerifyTrustUsingPromptKey(Uri manifest, DeploymentSignatureInformation signatureInformation, String productName)
   at Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.VerifySecurity(ActivationContext context, Uri manifest, AddInInstallationStatus installState)
   at Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.InstallAddIn()
The Zone of the assembly that failed was:
MyComputer

我首先认为这是证书的问题。所以我在客户机上明确安装了证书。那并没有解决它。当我复制flow目录让我们说我的桌面时,我可以毫无问题地安装和运行插件。因此,网络文件夹似乎不是受信任的位置。我将路径Z:/Software/Flow/添加到Excel选项中的受信任位置。此路径自动解析为完整路径// server / data / software / flow /。但这并没有改变任何事情。有人看过这个吗?

3 个答案:

答案 0 :(得分:10)

found解决方案。基本上我将网络共享定义为Intranet区域中的可信站点。

答案 1 :(得分:0)

您在受信任位置中添加了哪条路径?

如果不是“Z:\ Software \ Flow \”,您是否还检查“此位置的子文件夹是否也受信任”选项?

答案 2 :(得分:0)

Enable the ClickOnce trust prompt

当希望向最终用户展示安装和运行该区域提供的任何ClickOnce应用程序的选项时,为该区域启用信任提示。

通过使用注册表编辑器来启用ClickOnce信任提示
  1. 打开注册表编辑器:

    1. 单击开始,然后单击运行

    2. 打开框中,键入regedit,然后单击确定

  2. 找到以下注册表项:

    \ HKEY_LOCAL_MACHINE \ SOFTWARE \ MICROSOFT.NETFramework \ Security \ TrustManager \ PromptingLevel

    如果密钥不存在,请创建它。

  3. 添加以下子项作为字符串值(如果尚不存在),并在下表中显示相关的值。

+---------------------+----------+
| String Value subkey | Value    |
+---------------------+----------+
| Internet            | Enabled  |
+---------------------+----------+
| UntrustedSites      | Disabled |
+---------------------+----------+
| MyComputer          | Enabled  |
+---------------------+----------+
| LocalIntranet       | Enabled  |
+---------------------+----------+
| TrustedSites        | Enabled  |
+---------------------+----------+
相关问题