RE: PolicyVerificationException: WSE464: No policy could be found

From: Tomas (Tomas_at_discussions.microsoft.com)
Date: 09/15/04


Date: Wed, 15 Sep 2004 07:21:06 -0700

Ni Nikhil,

I have just finished my first project involving WSE 2.0 and I have come
across that error.

When I initially used the WSE 2.0 policy wizard to configure the Web Service
side I entered the name of the service to secure which was
http://localhost/onlineenrollment/group.asmx and I set it up to requred
signed requests.

This resulted in the error you're getting. I did some research and it turned
out that the address is case sensitive so I chaged my url to be case
sensitive. This didn't help.

I ended up just using the DefaultEndpoint value and that causes the policy
to be enfored for all my webservice. This is what I wanted anyway so it was
acceptable. Perhaps it is something you might try?

let me know if that has any effect!

Tom

"Nikhil Ukidwe" wrote:

> I have a web client consuming a web service. Both are on localhost. I am
> securing the communication using WSE 2.0 Policy with X.509 certificates. I
> am following all the standard procedures using WSE Security tool. I have
> also secured number of other clients and services on the same machine and
> they are working fine. But for this particular instance, I am getting the
> exception as "WSE464: No policy could be found for this message". The
> detailed exception message is as follows.
>
>
>
> Microsoft.Web.Services2.Policy.PolicyVerificationException: WSE464: No
> policy could be found for this message. at
> Microsoft.Web.Services2.Policy.SimplePolicyVerifier.VerifyMessageWithExpress
> ion(PolicyExpression expression, SoapEnvelope message, EndpointReference
> endpoint, String action, Uri requestEndpoint) at
> Microsoft.Web.Services2.Policy.SimplePolicyVerifier.Verify(SoapEnvelope
> message) at Microsoft.Web.Services2.Policy.PolicyManager.Verify(SoapEnvelope
> message) at
> Microsoft.Web.Services2.Policy.PolicyVerificationInputFilter.ProcessMessage(
> SoapEnvelope envelope) at
> Microsoft.Web.Services2.Pipeline.ProcessInputMessage(SoapEnvelope envelope)
> at
> Microsoft.Web.Services2.WebServicesExtension.BeforeDeserializeServer(SoapSer
> verMessage message)
>
>
>
> I have tried all possible ways such as:
>
> 1. Enabled all tracing options. I found that the client message is encrypted
> properly.
>
> 2. I tried to recreate policyCache.config at service side.
>
> 3. I also checked if unsecured communication works and found that its
> working fine.
>
> 4. When I secured only web service and not the web client, I got the same
> exception. According to my experience in this situation the service should
> throw an exception as "WSE402: The message does not conform to the
> policy..."
>
>
>
> I am unable to find what's going wrong. Please help!!!
>
>
>



Relevant Pages

  • Re: Down grade to WSE 2.0 from WSE 3.0
    ... understand the configuration in order to change the URL and the Certificate ... I can't just configure the client assembly using the WSE tool, ... I was hoping to manually code the Policy and Assertions in code which ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: parameter order when calling a web service
    ... I intend to use some sort of security token to secure the service, ... I'm still in the initial process of developing a client to consume the ... WSE nor WCF run on NETCF yet. ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: UserNameToken question
    ... Pablo Cibraro wrote: ... the client and service are independent. ... If you change the client to use a policy, the service should work as long ... In order to do the same in WSE, you need to use a custom security ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: Down grade to WSE 2.0 from WSE 3.0
    ... The policy model in WSE 2.0 is completely different from the model in WSE ... the policy applies to all web services in that ... You only have to create the policy in your client application and your web ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: Upgrading WSE 1.0 to WSE 3.0
    ... "UsernameOverTransportAssertion" policy, is that similar to what I was doing ... in WSE 1.0? ... that means each webservice from client to service ...
    (microsoft.public.dotnet.framework.webservices.enhancements)