sign tool .net code example

Example: Signtool.exe

MSBuild Error MSB3482
MSB3482: An error occurred while signing: '<error>'.

When you publish by using ClickOnce deployment or are using SignTool to sign manifests, you can encounter this error, which is generated by SignTool. Common issues are listed here.

An error occurred while signing: 'Value cannot be null. Parameter name: strongNameKey'.

This error might appear in the error list during ClickOnce deployment. The problem is caused by selecting an invalid signing key. Usually you are trying to use a key that is non-RSA encrypted. SignTool supports only RSA key encryption.

To correct this error, obtain a key with RSA encryption that is code signing enabled.