TheBear
Posts: 9
Joined: 2015-10-20
|
Hey guys,
After upgrading to the latest version of add in express, my publish/upgrade functionality stopped working.
After I publish a new version, and the user clicks on the "Check For Update" button on the excel ribbon, it does correctly detect that there is a new version to install.
However, after the user clicks on OK to upgrade, I get the following exception fired:
Exception Source:
Exception Type: System.Security.Cryptography.CryptographicException
Exception Message: A certificate chain processed, but terminated in a root certificate which is not trusted by the trust provider.
What settings do I need to change, or what do I need to do to get this working again?
I am using the default settings for everything in the add in express publish (MSI network deployed).
I even created a new certificate, and it gives me the same error. I am using SHA-256. |
|
Andrei Smolin
Add-in Express team
Posts: 18995
Joined: 2006-05-11
|
|
TheBear
Posts: 9
Joined: 2015-10-20
|
I have figured out why.
Just in case anyone else gets this error message, more than just upgrading I actually made one more change to launch the update. Here are the 2 variants:
1. Process.Start(updateUrl);
2. this.LaunchMSIUpdates(updateUrl);
I changed it from the first one, to using the second one. The second method fires off the exception, whilst the first one shows you a "We can't verify who created this file" warning, but still allows you to install if you click continue.
A solution to this is in this web post:
http://www.technipages.com/fix-we-cant-verify-who-created-this-file-error
Now both methods work for me flawlessly.
Is there a reason to be using LaunchMSIUpdates over Process.Start? Does it do more? I personally prefer the Process.Start since it gives you an understandable warning message, and still lets you to proceed versus the other method that "crashes". |
|
Sergey Grischenko
Add-in Express team
Posts: 7233
Joined: 2004-07-05
|
Hello,
Did you use a test certificate to sign the add-in binaries and ClickTwice installation? |
|