WCF behind load balancer - how to configure

We have several web servers using a load balancer. The machines run IIS6 on port 81. Externally, the site is accessible using port 80. The external name and the name of the machine are different.

We get

System.ServiceModel.EndpointNotFoundException: The message with To '<url>' cannot be processed at the receiver, due to an AddressFilter mismatch at the EndpointDispatcher. Check that the sender and receiver EndpointAddresses agree.

Relevant part of web.config:

  <endpoint binding="ws2007HttpBinding" bindingConfiguration="MyServiceBinding"
    contract="MyService.IMyService" listenUriMode="Explicit" />

We tried to add listenUri, but this did not solve our problems.

Any ideas?

+4
source share
2 answers
[ServiceBehavior(AddressFilterMode=AddressFilterMode.Any)]

Putting this attribute on a service resolves the issue.

+6
source

? F5 BIG-IP, , () uri nlb ( , , ). , , , - , HOSTS, [ ] [ IP- ].

SSL; TransportWithMessageCredential security, WCF HTTP-, nlb nlb node, biggie.

, , WCF IIS, WCF ( IIS ) http ( https). , factory, http ( https), TransportWithMessageCredential, .

, , (IP/-/etc).

+1

All Articles