I have a WCF service that lives on another server that I am trying to connect to from an EventReciever in a SharePoint 2010 feature. I have gone through all the hoops of configuring the feature in the web application's web.config file, installed the certificates, and I have verified I can see the web service from IE on that machine. When I try to trigger the service in SharePoint, I get this error:
An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail
I'm not sure what I'm supposed to do at this point. A lot of other sources on the web say this is a timing issue on the server, but wouldn't that nerf Internet Explorer, too?
Thanks,
- Matt
Edit 4:11PM 5/24/2012 OK, I made a few edits to the solution in visual studio (which I am leery of because someone else wrote it) and was able to get an inner exception:
[System.ServiceModel.FaultException] = {"At least one security token in the message could not be validated."}
Edit 11:23AM 5/25/2012
I created a test application on the same machine as the sharepoint server and ran some tests with that. So at least it's not a sharepoint issue, specifically, since that little winforms app is having the same problem.
In the FaultException there's a property called "Code" which is a "FaultCode" object. Two properties of this strike me as possibly useful: isSenderFault = true and Name = "Sender"
Not sure if that will help anybody give good tips but at least it's more.
Edit 11:50AM 6/1/2012
Still no luck connecting to the wcf service. The winforms app does not work when placed directly on the server hosting the service, either, with the same error.