WCF binding programatically and adding metadata excange
        Posted  
        
            by totem
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by totem
        
        
        
        Published on 2010-03-09T17:27:09Z
        Indexed on 
            2010/03/14
            12:05 UTC
        
        
        Read the original article
        Hit count: 719
        
wcf
Hi, My problem is im trying to enable mex on a service that uses net.tcp binding. that binding is for localhost port 5000, when i want to enable mex on the same port, and have it avilable for http i have to enable the HttpGetEnabled on the Service host. All this works well but when i try to add the binding it fails becuase the binding is "net.tcp://localhost:5000/test". is there a way to enable mex on the same port but with a diffrent uri?
Without enableing NetTcpPortSharing.
I dont think the code is the issue since i can add the MEX on a diffrent port through the code an it works fine, the question is how to have net.tcp://localhost:5000/test as the WCF tcp based enpoint and net.tcp://localhost:5000/test/mex as the http mex endpoint that gives the WSDL for the TCP endpoint.
thanks, Totem
© Stack Overflow or respective owner