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