Hi, When I try to make a SOAP call, I get the following Error.
soap:ClientGeneral security error (WSSecurityEngine: No crypto property file supplied for decryption)
Can anyone please explain what could have triggered it? Thank you,
UsernameForCertificateAssertion assertion = new UsernameForCertificateAssertion();
// Set the X509 Certifcate onto the assertion.
assertion.X509TokenProvider = new X509TokenProvider(StoreLocation.LocalMachine,
StoreName.My,
"3264763f000100000745",
X509FindType.FindBySerialNumber);
UsernameTokenProvider token = new UsernameTokenProvider("wsibtITStest-200024932", "T3sting!+$");
assertion.UsernameTokenProvider = token;
Policy policy = new Policy();
policy.Assertions.Add(assertion);
service.SetPolicy(policy);
X509SecurityToken secToken = new X509SecurityToken(col[0]);
service.RequestSoapContext.Security.Tokens.Add(secToken);
service.ping();
Where service is an instance of web service. I don't know if I am missing anything.
Thank you,