I am creating an Outlook 2010 add-in that will be tied to our ticketing system using the ticket API. A week ago, I was able to compile and get context / ribbon menus that correctly performed their functions. This morning I added some functions for encrypting and decrypting the API key, but now when I try to compile, I get
"Error 1 An error occurred while signing: The key is not valid for use in the specified state."
There is no line or file number associated with the error. At first, I thought it was something with the System.Security class, which I included, but commenting on everything related to this, and removing the link to System.Security does not fix the problem.
I tried to restart everything and make a clean build with no luck. About the board, this forum post I tried to delete both my machines and local RSA files, but it did not matter. I also tried deleting the _TemporaryKey.pfx file in my solution in the hope that if he had problems that VS was recreated by a new worker, but that did not even change the error message to inform me that the file was missing.
After all this, I tried to open another add-in project, which I did not change for about a week, and it also had the same error. At the moment, I'm not sure if this is a problem with Visual Studio or my computer, but the new Outlook add-in project will compile successfully, so that it only affects older projects.
source
share