我为客户端编写了一个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
您是如何从本地主机导出证书的? – Esen
即使迟到:除了导出方式外,如何在客户端计算机上安装它(尤其是在哪个证书存储区中)也很重要。通常建议的*受信任发布者*和*受信任的根证书颁发机构* – superjos