2012-10-30 100 views
1

我为客户端编写了一个Excel加载项,为5个用户执行一些自定义事务。我用VS2012和Excel 2010的互操作程序集编写了它。我发布了带有MS一键发布服务器的加载项,压缩了内容,并将它发送给这5个用户。他们(似乎)只能随机安装加载项。一些用户已成功,而其他用户则收到错误消息。一些更多信息:Microsoft一键安装程序 - 用户从未提示信任

  • 未成功安装的用户永远不会被提示信任安装的 。它需要他们正确的错误 消息。
  • 我只用本地开发证书签署了代码。我没有使用一个 verisign证书或类似的东西。我没有想到它会做任何事情,因为他们的本地文件系统永远不会让它进入提示。
  • 首先我做了一个批处理文件到configure the registry for inclusion list security。这没有做什么。
  • 我还没有能够在任何其他PC上复制错误,无论是否在我的本地网络上有 。

我的猜测是他们的安全策略中有一些东西禁止访问这些一键安装文件。任何想法哪一个?

以下是错误消息:

System.Security.SecurityException: Customized functionality in this application will not work because the certificate used to sign the deployment manifest for ThisAddin 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 

回答

0

因为时间紧迫,所以我导出了开发人员证书,并将它们安装在他们的机器上。

+0

您是如何从本地主机导出证书的? – Esen

+0

即使迟到:除了导出方式外,如何在客户端计算机上安装它(尤其是在哪个证书存储区中)也很重要。通常建议的*受信任发布者*和*受信任的根证书颁发机构* – superjos

1

我们面临着同样的问题,当一个外接的开发和利用域A的证书问题签署,并从域中的任何用户能够安装它。加载项发布在网站上:http://host.org/apps/addin/setup.exe

后来来自域B的人也决定使用加载项,但他们唯一看到的是关于受信任位置和联系您的管理员的消息。

解决方案很简单:打开Internet Explorer,将http://host.org添加到受信任的站点。

相关问题