C# Word Add-In Trusted Certificate

562 views Asked by At

Word Trusted Publisher certificate problem

I made Word Add In using C# whenever I run addin, it shows following error, I enabled all macros in Trust center but it doesn' work at all.

1

There are 1 answers

0
Eugene Astafiev On

The Deploying an Office Solution by Using ClickOnce article in MSDN states the following:

Before a solution can run on user computers, either you must grant trust or users must respond to a trust prompt when they install the solution. To grant trust to the solution, sign the manifests by using a certificate that identifies a known and trusted publisher. See Trusting the Solution by Signing the Application and Deployment Manifests.

As you may see the macro security settings of the host application does't play any role there. You need to sign the manifests by using a certificate. You can read more about that in the Configuring ClickOnce Trusted Publishers article. Also see the ClickOnce Security and Deployment section in MSDN for more information about ClickOnce installers.