Cannot publish project

Hi there.

I am trying to publish a project that is 100% working, so that people can use ClickOnce to install it.

Despite the project building and running fine, I am unable to publish it. Here is a cut and paste of the error message:

Error 2 SignTool reported an error 'Failed to sign bin\Release\VED1.publish\\setup.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.
'. VED1

Now, before anyone asks, I have done EXACTLY what is says, I found CAPICOM, checked it's version, and copied into the TWO directories that I found that contain signtool.exe

No difference at all - not a sasuage. I have tried un-ticking all the "sign this sign that" boxes - nothing makes any difference.

Somebody please help. I need to resolve this as soon as possible.

Many thanks in advance

Mark Wills MSc, MIAP
http://www.markwills.co.uk

[1061 byte] By [MarkWills] at [2007-12-24]
# 1

Hi,

Have you tried a fresh install of Visual Studio?

Regards,

S_DS

Spidermans_DarkSide at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic IDE...
# 2

Do you have the same problem with other projects or is it just related to this one ?

Also have you tried creating a new test certificate in 'signing'

Just a thought, i'm fairly new but thought i'd try and help anyway.

Hobb..

Hobb at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic IDE...
# 3

Anyone figured this one out? I am having the exact same problem. I have published this application at least 40 times in the past and it always worked. Now I am getting this message.

I did install SP1 today. I am thinking that has something to do with it.

Aspnot at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic IDE...
# 4

Check this out; about half way down the page:

http://msdn2.microsoft.com/en-us/vstudio/aa718689.aspx

2.1.4 SignTool.exe in the 64-bit SDK displays a CAPICOM version error when executed

If you install the SDK but not Visual Studio 2005 on a 64-bit machine, and if you use SignTool.exe for signing, you will see the following error:

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.

The reason for the error is that CAPICOM.dll is not registered correctly.

To resolve or workaround this issue

Copy CAPICOM.dll from Program Files\Common\Microsoft Shared\CAPICOM to the SignTool.exe directory.

2.1.5 ConfigSample.exe fails if Internet Information Server is installed after installing Visual Studio 2005 or the SDK

ConfigSample.exe will fail if you install the SDK samples in the following order

  1. Install Visual Studio 2005 or the SDK

  2. Install Internet Information Server

  3. Execute ConfigSample.exe to setup the samples for viewing

ConfigSample.exe will fail.

EricF.Kaufman at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic IDE...
# 5

If you get the following error publishing a project,

Error 32 SignTool reported an error 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.

Follow these steps

1) Download a zip file from click here
2) Extract capicom.dll from this zip file
3) Copy Paste this file in your C:/windows/system32 directory
4) click Start -> Run and type 'REGSVR32 capicom.dll' and press OK
5) Now you should be able to publish again via ClickOnce.

MartinHinshelwood at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic IDE...