Author Topic: An error occurred while signing  (Read 2532 times)

jideson

  • Newbie
  • *
  • Posts: 6
    • View Profile
An error occurred while signing
« on: November 10, 2015, 07:58:13 AM »
I recently did a build on an ongoing project and got the following message:

An error occurred while signing: Failed to sign bin\Debug\app.publish\AdvancedHMI.exe. SignTool Error: Signtool requires CAPICOM version 2.1.0.1 or higher. Please copy the latest version of CAPICOM.dll into the directory that contains SignTool.exe. If CAPICOM.dll exists, you may not have proper permissions to install CAPICOM.   AdvancedHMI   

Up until yesterday the project was building fine with each change.  I set it aside for a few weeks to work on more pressing projects and when I returned to it the above message was received each time I tried a build or debug.  Any ideas?  I'm very new to visual studio.   

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5260
    • View Profile
    • AdvancedHMI
Re: An error occurred while signing
« Reply #1 on: November 10, 2015, 10:32:53 AM »
Did you by any chance use the Publish function?

jideson

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: An error occurred while signing
« Reply #2 on: November 10, 2015, 03:02:02 PM »
I have used the publish function in the past, but have never had issues with editing and debugging after a publish.  In this circumstance, no I did not attempt a publish, only a debug after adding a momentary push button to one of my pages.  I located the SignTool.exe and ensured that the capicom.dll exists in the same directory. 

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5260
    • View Profile
    • AdvancedHMI
Re: An error occurred while signing
« Reply #3 on: November 10, 2015, 06:53:52 PM »
If you you publish on a solution, it will create a temporary signing key that will expire after 1 year. You will need to create new test certificate.

- Right click the AdvancedHMI project in Solution Explorer and select Properties
- Select the Signing tab
- Click Create Test Certificate

jideson

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: An error occurred while signing
« Reply #4 on: November 18, 2015, 09:41:43 AM »
I finally got a chance to try your recommendation with no success.  I'm still receiving the same message when I try to do a build. Any other thoughts?

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5260
    • View Profile
    • AdvancedHMI
Re: An error occurred while signing
« Reply #5 on: November 18, 2015, 06:07:07 PM »
Do you have any other DLLs referenced in your Solution?

jideson

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: An error occurred while signing
« Reply #6 on: November 19, 2015, 02:57:14 PM »
If I'm understanding you correctly (please bear with me, I have almost no experience with this kind of thing), the only four .dll files in my solution are:

 AdvancedHMI\obj\Release\TempPE\databaseDataSet.Designer.vb.dll

AdvancedHMI\obj\Release\TempPE\My Project.Resources.Designer.vb.dll

AdvancedHMI\obj\Debug\TempPE\databaseDataSet.Designer.vb.dll

AdvancedHMI\obj\Debug\TempPE\My Project.Resources.Designer.vb.dll

I can see no other .dll files in the solution.