Microsoft便捷式安装程序 – 用户从未提示信任

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

  • 没有成功安装的用户不会被提示信任安装。 这需要他们正确的错误信息。
  • 我用一个本地开发证书签署了代码。 我没有使用verisign证书或类似的东西。 我没有想到它会做任何事情,因为他们的本地文件系统永远不会让它到达提示。
  • 首先,我创build了一个batch file来configurationregistry以包含列表安全性 。 这没有做什么。
  • 我无法在任何其他PC上复制错误,无论是否在本地networking上。

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

这是错误消息:

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 

当一个加载项是由域A的证书问题开发和签署的,并且域中的任何用户都能够安装它时,我们面临类似的问题。 加载项发布在一个网站上: http : //host.org/apps/addin/setup.exe

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

解决scheme是微不足道的:打开Internet Explorer,将http://host.org添加到受信任的站点。

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

Interesting Posts