April 2007 - Posts

How to build/link multiple DLLs and an EXE C# projects into one EXE assembly

This is something what I wanted to figure out for quite some time now, but my friend dszabo at microsoft just did solve the problem for me :)

How to build/link multiple DLLs and an EXE C# projects into one EXE assembly.

CAPICOM error with ClickOnce

Technorati tags: .NET, CAPICOM, ClickOnce

I have a project using ClickOnce for deployment and from time to time, when I want to publish a new version of my application I receive 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.

This problem is happening, because the CAPICOM.dll is not registered correctly and the solution for this is the following:

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

I successfully resolved this issue by copying the .dll to this location, but this time no matter what I did I received this error, when I tried to publish. I was pulling my hair, so I decided to check out the deployment option, then after not finding annything there I went to the Signing. I noticed there that I was using a test certificate, what was expired already. Creating a new test certificate solved my problem.

Test Post is here...

Just playing... just testing!