Office add-in deployment manifest signed certificate or its location is not trusted

Source: Internet
Author: User

Exception information:

System.Security.SecurityException: The customization feature in this application will not work because the certificate that is used to sign the deployment manifest for the BIMT writing instruction or its location is not trusted. Ask your administrator for further assistance.
In Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInTrustEvaluator.VerifyTrustPromptKeyInternal ( Clickoncetrustpromptkeyvalue Promptkeyvalue, Deploymentsignatureinformation signatureinformation, String ProductName, truststatus status)
In Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInTrustEvaluator.VerifyTrustUsingPromptKey ( Uri manifest, deploymentsignatureinformation signatureinformation, String productName, truststatus status)
In Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInTrustEvaluator.VerifyTrustUsingPromptKey ( Uri manifest, deploymentsignatureinformation signatureinformation, String productName)
In Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.ProcessSHA1Manifest ( ActivationContext context, Deploymentsignatureinformation signatureinformation, PermissionSet permissionsRequested, Uri manifest, manifestsignatureinformationcollection signatures, Addininstallationstatus installstate)
In Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.VerifySecurity ( ActivationContext context, Uri manifest, Addininstallationstatus installstate)
In Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.InstallAddIn ()
The region of the failed assembly is:
MyComputer

Abnormal:

Knot Awareness Program:

1  Private voidButton1_Click (Objectsender, EventArgs e)2         {3             Try//32 Guests4             {5 Microsoft.Win32.RegistryKey key;6Key = Microsoft.Win32.Registry.LocalMachine.CreateSubKey (@"software\microsoft\. Netframework\security\trustmanager\promptinglevel");7 8Key. SetValue ("MyComputer","Enabled");9Key. SetValue ("LocalIntranet","Enabled");TenKey. SetValue ("Internet","Enabled"); OneKey. SetValue ("TrustedSites","Enabled"); AKey. SetValue ("UntrustedSites","Enabled"); - key. Close (); -MessageBox.Show ("Security Reg done!"); the             } -             Catch(Exception ex) -             { - MessageBox.Show (ex. Message); +             } -         } +  A         Private voidButton2_Click (Objectsender, EventArgs e) at         { -             Try//64 Guests -             { - Microsoft.Win32.RegistryKey key; -Key = Microsoft.Win32.Registry.LocalMachine.CreateSubKey (@"software\wow6432node\microsoft\. Netframework\security\trustmanager\promptinglevel"); -  inKey. SetValue ("MyComputer","Enabled"); -Key. SetValue ("LocalIntranet","Enabled"); toKey. SetValue ("Internet","Enabled"); +Key. SetValue ("TrustedSites","Enabled"); -Key. SetValue ("UntrustedSites","Enabled"); the key. Close (); *MessageBox.Show ("Security Reg done!"); $             }Panax Notoginseng             Catch(Exception ex) -             { the MessageBox.Show (ex. Message); +             } A}

Software: http://pan.baidu.com/s/1jH3Rc1o

MSDN Description: Https://msdn.microsoft.com/zh-cn/library/ms996418.aspx

Office add-in deployment manifest signed certificate or its location is not trusted

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.