I have one site that uses an old WCF service environment and a new one that uses a newer environment.
When I say environments I mean WCF services dll that expose same contract and methods, yet they are implemented in a different manner.
It appears that I cannot use the same server (IIS) for this kind of setup, as trying to use the newer site produces errors and I've noticed that the traffic is being redirected to the old WCF environment. (I have checked my sites configuration and binding, it's all 100% good).
My question is whether this setup of 2 sites using the same named contact can be accomplished ? It appears to me that it doesn't, even though they are distinguished by the service address.
Server (old):
<service name="Services.API.AnonymousUserService" behaviorConfiguration="ProductionBehavior">
<host>
<baseAddresses>
<add baseAddress="net.tcp://old.mysite.com:808/AnonymousUserService.svc" />
</baseAddresses>
</host>
<endpoint name="tcp"
address=""
binding="netTcpBinding" bindingConfiguration="ProductionBinding"
contract="Services.API.IAnonymousUserService" />
<endpoint name="mex"
address="mex"
binding="mexTcpBinding"
contract="IMetadataExchange" />
</service>
Client (old)
<client>
<endpoint name="tcp"
address="net.tcp://old.mysite.com/AnonymousUserService.svc"
binding="netTcpBinding" bindingConfiguration="ProductionBinding"
contract="ServiceAnonymousUser.IAnonymousUserService">
<identity>
<servicePrincipalName value="host/production01.local" />
</identity>
</endpoint>
</client>
Server (new):
Same as Server (old), only the address is "net.tcp://new.mysite.com:808/AnonymousUserService.svc"
Client (new):
Same as Client (old), only the address is "net.tcp://new.mysite.com/AnonymousUserService.svc"