Scenario:
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
Solution:
To work around this issue was to assign a new strong name key file. Follow these steps:
- Right click on your project file in the solution explorer and select "Properties"
- Click the "Signing" tab.
- Choose "Sign the assembly" (this may already be choosen with an old snk file, if it is choosen, leave it selected)
- 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.