Error when trying to publish

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

Error when trying to publish
 
Eclipsed




Posts: 9
Joined: 2012-04-24
Updated to the most recent version of Addin Express for Visual Studio 2017
Did not change any code
Need to re-publish as the signed code certificate has expired
went through the same steps as before, but this time this message pops up from AddinExpress.VSPackage
"Object Reference not set to an instance of an Object"

The only difference is the certificate - this one is made by firefox; a .p12 file

There seems to be no way to troubleshoot or track down this error.
Found nothing in the forums
Please advise
Posted 28 Jun, 2019 19:50:47 Top
Andrei Smolin


Add-in Express team


Posts: 18794
Joined: 2006-05-11
Hello Eclipsed,

According to our guys, you need to have a .PFX or a certificate installed to the certificate store. Does this help?


Andrei Smolin
Add-in Express Team Leader
Posted 01 Jul, 2019 09:50:36 Top
Eclipsed




Posts: 9
Joined: 2012-04-24
Installed Fresh Visual Studio 2017 & Latest Add-in Express to a fresh machine, I still get the same error. I also carefully created a fresh certificate from IE and put it in the 'store', extension of .pfx, certificate is on the C: drive. I get this warning as well, after clicking 'start' in VS and then exiting Powerpoint (the plugin's target software):



Warning Add-in Express for Microsoft Office and .NET error: Signing failed (soandso_Addin). The device is not ready.

---------------------------------------------------------------------------------------------------------------------
Date and Time: 7/3/2019 12:20:00 PM
Machine Name: JIM-PC3
IP Address: fe80::884a:a355:xxxx:a9bd%25
Current User: Jim-PC3\Jim

Application Domain: DefaultDomain
Assembly Codebase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
Assembly Full Name: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Assembly Version: 4.0.0.0

Exception Source: mscorlib
Exception Type: System.Security.Cryptography.CryptographicException
Exception Message: The device is not ready.

Exception Target Site: ThrowCryptographicException

---- Stack Trace ----
System.Security.Cryptography.CryptographicException.ThrowCryptographicException(hr As Int32)
mscorlib.dll: N 0006 (0x6) IL
System.Security.Cryptography.X509Certificates.X509Utils._QueryCertFileType(fileName As String)
mscorlib.dll: N 00000 (0x0) JIT
System.Security.Cryptography.X509Certificates.X509Certificate.LoadCertificateFromFile(fileName As String, password As Object, keyStorageFlags As X509KeyStorageFlags)
mscorlib.dll: N 0033 (0x21) IL
System.Security.Cryptography.X509Certificates.X509Certificate2..ctor(fileName As String, password As String)
mscorlib.dll: N 0011 (0xB) IL
AddinExpress.Projects.Common.Registrator.SignProject(project As Project, projectFolder As String, primaryOutput As String, intermediateDir As String, supportLoader As Boolean)
mscorlib.dll: N 0328 (0x148) IL PresenterMedia_Addin mscorlib 0
Posted 03 Jul, 2019 12:34:58 Top
Eclipsed




Posts: 9
Joined: 2012-04-24
This topic can be closed - The fix to the issue was to 're-populate' before publishing
Posted 03 Jul, 2019 14:36:26 Top
Andrei Smolin


Add-in Express team


Posts: 18794
Joined: 2006-05-11
Thank you for letting us know!


Andrei Smolin
Add-in Express Team Leader
Posted 04 Jul, 2019 08:11:16 Top