office加载项部署清单签名的证书或其位置不受信任
2016-06-20 14:12
5041 查看
异常信息:
System.Security.SecurityException: 此应用程序中的自定义功能将不起作用,原因是用于为 BIMT写作指导 的部署清单签名的证书或其位置不受信任。请向管理员寻求进一步帮助。
在 Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInTrustEvaluator.VerifyTrustPromptKeyInternal(ClickOnceTrustPromptKeyValue promptKeyValue, DeploymentSignatureInformation signatureInformation, String productName, TrustStatus status)
在 Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInTrustEvaluator.VerifyTrustUsingPromptKey(Uri manifest, DeploymentSignatureInformation signatureInformation, String productName, TrustStatus status)
在 Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInTrustEvaluator.VerifyTrustUsingPromptKey(Uri manifest, DeploymentSignatureInformation signatureInformation, String productName)
在 Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.ProcessSHA1Manifest(ActivationContext context, DeploymentSignatureInformation signatureInformation, PermissionSet permissionsRequested, Uri manifest, ManifestSignatureInformationCollection signatures, AddInInstallationStatus installState)
在 Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.VerifySecurity(ActivationContext context, Uri manifest, AddInInstallationStatus installState)
在 Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.InstallAddIn()
失败的程序集的区域是:
MyComputer
异常截图:
结觉方案:
软件下载地址:http://pan.baidu.com/s/1jH3Rc1o
msdn说明:https://msdn.microsoft.com/zh-cn/library/ms996418.aspx
System.Security.SecurityException: 此应用程序中的自定义功能将不起作用,原因是用于为 BIMT写作指导 的部署清单签名的证书或其位置不受信任。请向管理员寻求进一步帮助。
在 Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInTrustEvaluator.VerifyTrustPromptKeyInternal(ClickOnceTrustPromptKeyValue promptKeyValue, DeploymentSignatureInformation signatureInformation, String productName, TrustStatus status)
在 Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInTrustEvaluator.VerifyTrustUsingPromptKey(Uri manifest, DeploymentSignatureInformation signatureInformation, String productName, TrustStatus status)
在 Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInTrustEvaluator.VerifyTrustUsingPromptKey(Uri manifest, DeploymentSignatureInformation signatureInformation, String productName)
在 Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.ProcessSHA1Manifest(ActivationContext context, DeploymentSignatureInformation signatureInformation, PermissionSet permissionsRequested, Uri manifest, ManifestSignatureInformationCollection signatures, AddInInstallationStatus installState)
在 Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.VerifySecurity(ActivationContext context, Uri manifest, AddInInstallationStatus installState)
在 Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.InstallAddIn()
失败的程序集的区域是:
MyComputer
异常截图:
结觉方案:
private void button1_Click(object sender, EventArgs e) { try//32位 { Microsoft.Win32.RegistryKey key; key = Microsoft.Win32.Registry.LocalMachine.CreateSubKey(@"SOFTWARE\MICROSOFT\.NETFramework\Security\TrustManager\PromptingLevel"); key.SetValue("MyComputer", "Enabled"); key.SetValue("LocalIntranet", "Enabled"); key.SetValue("Internet", "Enabled"); key.SetValue("TrustedSites", "Enabled"); key.SetValue("UntrustedSites", "Enabled"); key.Close(); MessageBox.Show("Security Reg Done!"); } catch (Exception ex) { MessageBox.Show(ex.Message); } } private void button2_Click(object sender, EventArgs e) { try//64位 { Microsoft.Win32.RegistryKey key; key = Microsoft.Win32.Registry.LocalMachine.CreateSubKey(@"SOFTWARE\Wow6432Node\MICROSOFT\.NETFramework\Security\TrustManager\PromptingLevel"); key.SetValue("MyComputer", "Enabled"); key.SetValue("LocalIntranet", "Enabled"); key.SetValue("Internet", "Enabled"); key.SetValue("TrustedSites", "Enabled"); key.SetValue("UntrustedSites", "Enabled"); key.Close(); MessageBox.Show("Security Reg Done!"); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
软件下载地址:http://pan.baidu.com/s/1jH3Rc1o
msdn说明:https://msdn.microsoft.com/zh-cn/library/ms996418.aspx
相关文章推荐
- sqlserver2012评估期已过问题处理
- discuz修改模板相对路径
- JAVA JDK 动态代理以及Mybatis的理解
- QC缺陷字段,级别,流程图,人员修改规范管理
- GC调优在Spark应用中的实践
- Vuforia学习推荐
- 简单之美-软件开发实践者的思考 01
- sql server 2012提示评估期已过的解决办法 附序列号
- 1. python中的随机函数
- js限制页面复制,一次纠结的问题查找
- 使用video.js播放视频
- IOS 进阶Accounts.framework和Social.framework
- 如何在Android Studio添加aar包或jar包引用
- 11gRAC安装grid软件时网络配置报错
- 正则学习笔记——重复、贪婪与懒惰
- ASP.NET 4的Demo实践:URL路由改进支持
- k-means聚类算法
- synchronized的理解
- hadoop伪分布式安装与配置
- docker安装