If you want to publish metadata, you need to enable port sharing (so that the MEX endpoint has the same port as a regular TCP port, you will get an AddressAlreadyInUse exception if you set it to false), and you probably need to specify the port on your url (don't know which TCP port will use otherwise), so your code should be (assuming port 8080 is right for you):
_container.Register(Component.For<IMembershipService>().ImplementedBy<MembershipService>() .AsWcfService( new DefaultServiceModel() .AddEndpoints(WcfEndpoint .BoundTo(new NetTcpBinding() { PortSharingEnabled = true}) .At("net.tcp://localhost:8080/MembershipService") ) .PublishMetadata() ) );
This works fine using windsor 3.0 in the castle.
source share