I\'m getting this error while attempting to make my WCF client and server talk to each other.
The X.509 certificate CN=localhost chain building faile
(Thought i would share this just in case it saves somebody out there some time) I ran into into this issue while running a web application on WIF. I fixed my problem by moving a copy of the x.509 certificate i was working with from "Certificates/personal/certificates" folder to "Trusted Root Certification Authorities/Certificates" Folder inside the certificate store. You can do this by running microsoft management console