I am using a Security Token Server (STS) to authenticate different users

Asked By 50 points N/A Posted on -
qa-featured

At present I am using a Security Token Server (STS) to authenticate different users. It was configured with HTTPS. You may know that it is a WCF service. I attached WCF web role for the STS in our Silverlight Client Application. It’s to be noted here that both of these applications are joined together with azure project.

At present it is working unexpectedly as on IIS I have host applications. Again when I ran the same on Emulator, it showed me the following error message.

Please help.

The message with To 'https://127.0.0.1:4443/Service.svc/IWSTrust13' cannot be processed at the receiver, due to an AddressFilter mismatch at the EndpointDispatcher.  Check that the sender and receiver's EndpointAddresses agree.

i found some solutions adding below code to class files [ServiceBehavior(AddressFilterMode = AddressFilterMode.Any)] [AspNetCompatibilityRequirements(RequirementsMode =  AspNetCompatibilityRequirementsMode.Allowed)] 

But as we are using Microsoft identity model DLL, we don’t have access to service classes.

our service's svc file contains code like this only : <%@ ServiceHost Language="C#" Debug="true" Factory="Microsoft.IdentityModel.Protocols.WSTrust.WSTrustServiceHostFactory" Service="CustomSecurityTokenServiceConfiguration"  %>

SHARE
Best Answer by Franks good
Best Answer
Best Answer
Answered By 0 points N/A #143949

I am using a Security Token Server (STS) to authenticate different users

qa-featured

Hi.

There are three causes of this error.

  • You have different contracts between receiver and sender.
  • You are using a different binding between receiver and sender.
  • The message security settings are not consistent between receiver and sender.

And the solution which worked for me was by adding the following code to your contract implementation.

[ServiceBehavior(AddressFilterMode = AddressFilterMode.Any)]

For example::

[ServiceBehavior(AddressFilterMode=AddressFilterMode.Any)]
publicclassMyUploadService:IMyUploadService
{
 
}

 

Answered By 0 points N/A #196616

I am using a Security Token Server (STS) to authenticate different users

qa-featured

These may be caused for different contracts, different binding  or the message security settings are not consistent between receiver and sender.

You can give a rule for this problem. The rule is as follows:

 [ServiceBehavior(AddressFilterMode = AddressFilterMode.Any)]

thank you

Login/Register to Answer

Related Questions