VSIX signing error - Unknown error 0x80510029

Chris Crowe 1 Reputation point
2021-01-10T21:51:18.4+00:00

I am trying to sign a VISX file that was created in Visual Studio 2019.

My VISX sign tool version is 16.0.29116.78

My command line is as follows

vsixsigntool.exe sign /v /f "C:\CodeSigning\Tools\my.pfx" /p password /sha1 "33 5d 72 5a 26 6b 7c c1 d5 6c 48 f4 de 46 d2 20 6e c5 53 cd" /t "http://timestamp.digicert.com" C:\Projects\CodeSigning\SampleVSIXPackage\bin\Debug\SampleVSIXPackage.vsix

The output is simply

Server time: Mon Jan 11 10:46:31 2021

VsixSignTool Error: Could not sign package "C:\Projects\CodeSigning\Sample Files to sign\VSIX\SampleVSIXPackage.vsix": Error Code - 80510029.

Error Message: "Unknown error 0x80510029".

Number of files successfully Signed: 0
Number of errors: 1

I have no idea what to do now.

The only reference to the error is https://www.hresult.info/FACILITY_OPC/0x80510029 or https://learn.microsoft.com/en-us/windows/win32/api/msopc/nf-msopc-iopcdigitalsignatureenumerator-getcurrent

Both refer to the same message which is

OPC_E_DS_MISSING_SIGNATURE_TIME_PROPERTY
0x80510029

The SignatureProperty element with the Id attribute value of "idSignatureTime" does not exist or is not correctly constructed.

The VISX was created by the Visual Studio New Project wizard, VisX project and simply compiled.

Any ideas of how to debug this?

The extension.vsixmanifest file contains the following

<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011">
<Metadata>
<Identity Id="SampleVSIXPackage.cb802016-9d17-488a-a46f-4a7721e39ea0" Version="1.0" Language="en-US" Publisher="Chris" />
<DisplayName>SampleVSIXPackage</DisplayName>
<Description>Empty VSIX Project.</Description>
</Metadata>
<Installation>
<InstallationTarget Id="Microsoft.VisualStudio.Enterprise" Version="[16.0, 17.0)" />
</Installation>
<Dependencies>
<Dependency Id="Microsoft.Framework.NDP" DisplayName="Microsoft .NET Framework" Version="[4.5,)" />
</Dependencies>
<Prerequisites>
<Prerequisite Id="Microsoft.VisualStudio.Component.CoreEditor" Version="[16.0,17.0)" DisplayName="Visual Studio core editor" />
</Prerequisites>
<Assets>
<Asset Type="Microsoft.VisualStudio.VsPackage" Path="SampleVSIXPackage.pkgdef" />
</Assets>
</PackageManifest>

Chris

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,252 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Chris Crowe 1 Reputation point
    2021-01-12T16:30:57.447+00:00

    My VISX sign tool version is 16.0.29116.78

    Chris

    0 comments No comments

  2. Chris Crowe 1 Reputation point
    2021-01-12T21:17:10.1+00:00

    I installed the VISX package from NuGet

    In my packages folder this is the folder that is created

    Microsoft.VSSDK.VsixSignTool.16.2.29116.78

    Below is the file version properties of the vsixsigntool.exe contained within that folder.

    55881-2021-01-13-10-15-44-vsixsigntoolexe-properties.png


  3. ESCfomm 6 Reputation points
    2021-02-05T09:43:00.223+00:00

    Here are several suggestions, please help to try and response the result.
    1 please download the latest version"16.2.29116.78" of the VsixSignTool from following link and sign again
    https://www.nuget.org/packages/Microsoft.VSSDK.Vsixsigntool

    2 please try following command the singe the extension
    vsixsigntool.exe sign /v /f "C:\CodeSigning\Tools\my.pfx" /p password C:\Projects\CodeSigning\SampleVSIXPackage\bin\Debug\SampleVSIXPackage.vsix

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.