Unable to Use Net TCp Binding
-
I have configured my WCf service with basic and Net Tcp bindings but while downloading metaData error is coming. Enable to Download MetaData and protocol not Supported here is my Config file <system.serviceModel> <services> <service behaviorConfiguration="CustomerServiceMEXBehavior" name="CustomerService.CustomerService"> <endpoint address="" binding="basicHttpBinding" contract="CustomerService.ICustomerService" /> <endpoint address="net.tcp://localhost:8090/CustomerService" binding="netTcpBinding" bindingConfiguration="tcpBinding" name="netTcpEndpoint" contract="CustomerService.ICustomerService" /> <host> <baseAddresses> <add baseAddress="http://localhost:8081/CustomerService" /> <add baseAddress="net.tcp://localhost:8090/CustomerService" /> </baseAddresses> </host> </service> </services> <behaviors> <serviceBehaviors> <behavior name="CustomerServiceMEXBehavior"> <serviceMetadata httpGetEnabled="true" /> <serviceDebug includeExceptionDetailInFaults="false" /> </behavior> </serviceBehaviors> </behaviors> <bindings> <netTcpBinding> <binding name="tcpBinding"> <reliableSession enabled="true" /> <security> <transport clientCredentialType="None" protectionLevel="EncryptAndSign"> <extendedProtectionPolicy policyEnforcement="Never" /> </transport> </security> </binding> </netTcpBinding> </bindings> <serviceHostingEnvironment multipleSiteBindingsEnabled="true" /> </system.serviceModel> <system.webServer> <modules runAllManagedModulesForAllRequests="true"/> </system.webServer> Can anybody tell me what i am doing wrong or what kind of settings i need to change for this to work
-
I have configured my WCf service with basic and Net Tcp bindings but while downloading metaData error is coming. Enable to Download MetaData and protocol not Supported here is my Config file <system.serviceModel> <services> <service behaviorConfiguration="CustomerServiceMEXBehavior" name="CustomerService.CustomerService"> <endpoint address="" binding="basicHttpBinding" contract="CustomerService.ICustomerService" /> <endpoint address="net.tcp://localhost:8090/CustomerService" binding="netTcpBinding" bindingConfiguration="tcpBinding" name="netTcpEndpoint" contract="CustomerService.ICustomerService" /> <host> <baseAddresses> <add baseAddress="http://localhost:8081/CustomerService" /> <add baseAddress="net.tcp://localhost:8090/CustomerService" /> </baseAddresses> </host> </service> </services> <behaviors> <serviceBehaviors> <behavior name="CustomerServiceMEXBehavior"> <serviceMetadata httpGetEnabled="true" /> <serviceDebug includeExceptionDetailInFaults="false" /> </behavior> </serviceBehaviors> </behaviors> <bindings> <netTcpBinding> <binding name="tcpBinding"> <reliableSession enabled="true" /> <security> <transport clientCredentialType="None" protectionLevel="EncryptAndSign"> <extendedProtectionPolicy policyEnforcement="Never" /> </transport> </security> </binding> </netTcpBinding> </bindings> <serviceHostingEnvironment multipleSiteBindingsEnabled="true" /> </system.serviceModel> <system.webServer> <modules runAllManagedModulesForAllRequests="true"/> </system.webServer> Can anybody tell me what i am doing wrong or what kind of settings i need to change for this to work
-
I have configured my WCf service with basic and Net Tcp bindings but while downloading metaData error is coming. Enable to Download MetaData and protocol not Supported here is my Config file <system.serviceModel> <services> <service behaviorConfiguration="CustomerServiceMEXBehavior" name="CustomerService.CustomerService"> <endpoint address="" binding="basicHttpBinding" contract="CustomerService.ICustomerService" /> <endpoint address="net.tcp://localhost:8090/CustomerService" binding="netTcpBinding" bindingConfiguration="tcpBinding" name="netTcpEndpoint" contract="CustomerService.ICustomerService" /> <host> <baseAddresses> <add baseAddress="http://localhost:8081/CustomerService" /> <add baseAddress="net.tcp://localhost:8090/CustomerService" /> </baseAddresses> </host> </service> </services> <behaviors> <serviceBehaviors> <behavior name="CustomerServiceMEXBehavior"> <serviceMetadata httpGetEnabled="true" /> <serviceDebug includeExceptionDetailInFaults="false" /> </behavior> </serviceBehaviors> </behaviors> <bindings> <netTcpBinding> <binding name="tcpBinding"> <reliableSession enabled="true" /> <security> <transport clientCredentialType="None" protectionLevel="EncryptAndSign"> <extendedProtectionPolicy policyEnforcement="Never" /> </transport> </security> </binding> </netTcpBinding> </bindings> <serviceHostingEnvironment multipleSiteBindingsEnabled="true" /> </system.serviceModel> <system.webServer> <modules runAllManagedModulesForAllRequests="true"/> </system.webServer> Can anybody tell me what i am doing wrong or what kind of settings i need to change for this to work
Could it be because you are missing the mexHttpBinding? <endpoint address="mex" binding="mexTcpBinding" contract="IMetadataExchange"/>
-
I have configured my WCf service with basic and Net Tcp bindings but while downloading metaData error is coming. Enable to Download MetaData and protocol not Supported here is my Config file <system.serviceModel> <services> <service behaviorConfiguration="CustomerServiceMEXBehavior" name="CustomerService.CustomerService"> <endpoint address="" binding="basicHttpBinding" contract="CustomerService.ICustomerService" /> <endpoint address="net.tcp://localhost:8090/CustomerService" binding="netTcpBinding" bindingConfiguration="tcpBinding" name="netTcpEndpoint" contract="CustomerService.ICustomerService" /> <host> <baseAddresses> <add baseAddress="http://localhost:8081/CustomerService" /> <add baseAddress="net.tcp://localhost:8090/CustomerService" /> </baseAddresses> </host> </service> </services> <behaviors> <serviceBehaviors> <behavior name="CustomerServiceMEXBehavior"> <serviceMetadata httpGetEnabled="true" /> <serviceDebug includeExceptionDetailInFaults="false" /> </behavior> </serviceBehaviors> </behaviors> <bindings> <netTcpBinding> <binding name="tcpBinding"> <reliableSession enabled="true" /> <security> <transport clientCredentialType="None" protectionLevel="EncryptAndSign"> <extendedProtectionPolicy policyEnforcement="Never" /> </transport> </security> </binding> </netTcpBinding> </bindings> <serviceHostingEnvironment multipleSiteBindingsEnabled="true" /> </system.serviceModel> <system.webServer> <modules runAllManagedModulesForAllRequests="true"/> </system.webServer> Can anybody tell me what i am doing wrong or what kind of settings i need to change for this to work