Compiler Error CS1548

Switch View :
ScriptFree
Visual C# Reference: Errors and Warnings
Compiler Error CS1548

Cryptographic failure while signing assembly 'assembly' — 'reason'

CS1548 occurs when assembly signing fails. This is usually due to an invalid key file name, an invalid key file path, or a corrupt key file.

To fully sign an assembly, you must provide a valid key file that contains information about the public and private keys. To delay sign an assembly, you must select the Delay sign only check box and provide a valid key file that contains information about the public key information. The private key is not necessary when an assembly is delay-signed.

For more information, see How to: Sign an Assembly (Visual Studio), /keyfile (Specify Strong Name Key File) (C# Compiler Options) and /delaysign (Delay Sign the Assembly) (C# Compiler Options).

When creating an assembly, the C# compiler calls into a utility called al.exe. If there is a failure in the assembly creation, the reason for the failure is reported by al.exe. See Al.exe Tool Errors and Warnings and search that topic for the text reported by the compiler in 'reason'.

See Also

Tasks

Community Content

The studend
emmm
try runing visual studio on administrator mode
---
right click on the visual studio 2008\5 symbol
run as administrator
and try agian to give the private\public key to the assembly

let me know if it work to u...it did to me.

rancon
error CS1548: Cryptographic failure while signing assembly 'foo.dll' -- 'Access is denied. '
Check out http://www.boyet.com/Articles/SigningAssemblyLUA.html describing the error as it occurs because of missing privileges on the folder:
x:\Documents and Settings\All Users\Application Data\Microsoft\Crypto\RSA\MachineKeys
Hi,  thanks for your posting.  I tried to recompile the code that someone wrote 4 years ago.   I uses .bat file to compile and i had the same error message as you described.  I checked the privileges of the folder you mentioned above and it has full control but i still run into the problem.  Your help would be appreciated.  Thanks,