Visual Studio Compiler Error CS1548 - Cryptographic failure while signing assembly on Windows 7

I recommend

I received the error Compiler Error CS1548 Cryptographic failure while signing assembly from a Visual Studio 2008 build after modifying a project to sign the assembly with a strong name from an existing key file.

I had a similar issue when trying to create a strong name key file on a different machine.  I created a blog post about an error creating a strong name key file from Visual Studio or sn.exe. It ends up adding the security rights mentioned in my other blog post fixes this issue as well.

To solve the issue on Windows 7 you can add modify permissions to your user for the C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys folder. Please see my other post for more information.

Technical Visual Studio March 26, 2010


Comments