Publish generates the error Failed to sign setup.exe HRESULT = -2147467259

Add-in Express™ Support Service
That's what is more important than anything else

Publish generates the error Failed to sign setup.exe HRESULT = -2147467259
 
David R.




Posts: 55
Joined: 2010-07-22
An existing WinForm program that uses ADX recently fails to publish with the error message "Failed to sign the '<PATH TO FILE>\setup.exe' file (HRESULT = -2147467259). I am not able to search the Add-In Express forums right now because your site states that a problem occurred, however the other day when I search for this Win32 handle code a forum answer indicated a permissions problem. I am running Visual Studio as a Local Administrator by right clicking on Visual Studio 2017 and selecting Run as administrator. VS 2017 is running on Windows 10 build 1803. The last successful publish was on 15-March-2019. Windows updates KB4023057 and KB4489868 were automatically installed on 20-March and 16-March respectively. Would the signing failure be related to those updates? The certificate file exists. My Windows user account has read/write access to that file. My user account has read/write access to the Publish directory too. Do you have any suggestions to correct this?
Posted 26 Mar, 2019 15:59:50 Top
Dmitry Kostochko


Add-in Express team


Posts: 2875
Joined: 2004-04-05
Hi David,

Is your real certificate okay? Please try to sign some executable (or even better the same '<PATH TO FILE>\setup.exe' file) manually by using the signtool.exe tool. Please let me know about the results in any case.

I am not able to search the Add-In Express forums right now because your site states that a problem occurred...


Thank you for letting us know, we will try to fix the issue as soon as possible.
Posted 27 Mar, 2019 03:25:25 Top
David R.




Posts: 55
Joined: 2010-07-22
The signtool was the trick that helped. Using the /debug flag with "sign" showed that the certificate expired 21-Mar-2019. A replacement certificate eliminated the vague error message.
Posted 27 Mar, 2019 13:47:39 Top
Dmitry Kostochko


Add-in Express team


Posts: 2875
Joined: 2004-04-05
Hi David,

Thank you for letting us know.
Posted 28 Mar, 2019 03:32:04 Top