When I run my client side code I keep getting this error:
The certificate 'CN=WCFClientCert' must have a private key. The process must have access rights for the private key.
The ClientCert certificate is in my Current User\Personal\Certificates store.
I created it using:
makecert -sk WCFClientCert-iv WCFServiceCA.pvk -n "CN=WCFClientCert" -ic WCFServiceCA.cer -sr CurrentUser -ss My -sky exchange -pe WCFClientCert.cer
, so I did do -sky exchange and -pe.
I used findprivatekey.exe to find the location of WCFClientCert's key, and went to its location in the directory. But the file already had all the permissions I could think of. Administrator, COMPUTERNAME\Users, the account I log into, SYSTEM, etc.
I have run the client code from both within Visual Studio 2010s Debug mode, and from building the project and its setup/deployment project and actually installing it on a machine. The actual installation was on another machine, but I am getting the same
The WCF Service is on a separate server, and I received this error when installing the service, but fixed it by adding the NETWORK USER user to the permissions on the key file. (service is hosted on IIS).
So why am I receiving the same error on the client side, but the same solution does not work?
Thank you in advance for any he
View Complete Post