MySql - cryptographic failure while signing assembly

Posted by Blake on 11/11/2014


I upgraded a copy of the MySql.Data project to a Visual Studio 2013 project last night and received the following error when I went to compile it:

    cryptographic failure while signing assembly


To work around this issue was to assign a new strong name key file. Follow these steps:

  1. Right click on your project file in the solution explorer and select "Properties"
  2. Click the "Signing" tab.
  3. Choose "Sign the assembly" (this may already be choosen with an old snk file, if it is choosen, leave it selected)
  4. In the drop down, select "<New...>" and create a new snk file, you will be required to enter a password.

That should be all you need. Save your project and recompile and the cryptographic exception should be gone.