I was getting this error when I had deployed my code to two load-balanced servers, but only on one of the servers. It would work on the other server. I think the important thing here is to import your certificate to My/LocalMachine so that you have the ability to manage the private keys. I deleted my certificate in the other locations before doing this. The weird thing was that the certificate was set up on the servers identically, and I was able to confirm that the private keys were also in the same relative location using the FindPrivateKey tool. On the server that was causing the issue, I simply:
It's weird that both servers didn't require this, but I thought it was worth mentioning that sometimes server configuration has inconsistencies that need to be accounted for.