WCF System.ServiceModel.Security.SecurityNegotiationException

0 votes
asked Feb 9, 2009 by jyotishka-bora

I am getting the following error message when trying to call my service from another server.

Service cannot be started.
The caller was not authenticated by the service. --->
The request for security token could not be satisfied because authentication failed.

in my Event Viewer when I tried to connect the client to the server.

I enabled tracing in the server and it looks like the

System.IdentityModel.Tokens.SecurityTokenValidationException is being thrown. The message says "The service does not allow you to log on anonymously."

I checked IIS -> WCF website and I do have the "Enable anonymous access" enabled.

What am I missing?

1 Answer

0 votes
answered Feb 9, 2009 by adron

Is another security setting enabled besides the anonymous?

If you have anonymous selected and another, and have basic or some other type selected you will run into this issue. With WCF you are pretty much limited, while hosting in IIS, to a single security authentication model.

If you could elaborate a little bit I could possibly provide a better answer. :)

Welcome to Q&A, where you can ask questions and receive answers from other members of the community.
Website Online Counter