• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 482
  • Last Modified:

tcp endpoind does not work in wcf

Guys, I have a WCF test with 1 endpoint. When I added a tcp endpoint does not work.

Does someone coulf help me please,

Many Thanks
-----------------

<?xml version="1.0"?>
<configuration>

  <system.web>
    <compilation debug="true" targetFramework="4.0" />
  </system.web>
  <system.serviceModel>
    <bindings>
      <netTcpBinding>
        <binding name="NewBinding0" transferMode="Streamed" maxBufferSize="655360"
          maxReceivedMessageSize="655360">
          <security>
            <transport clientCredentialType="None" />
            <message clientCredentialType="None" />
          </security>
        </binding>
      </netTcpBinding>
    </bindings>
    <services>
      <service behaviorConfiguration="default" name="WcfService8.Service1">
        <endpoint address="basic" binding="basicHttpBinding" bindingConfiguration=""
          contract="WcfService8.IService1" />
        <endpoint address="mexhttp" binding="mexHttpBinding" bindingConfiguration=""
          contract="IMetadataExchange" />
        <endpoint address="tcp" binding="netTcpBinding" bindingConfiguration=""
          contract="WcfService8.IService1" />
        <host>
          <baseAddresses>
            <add baseAddress="http://localhost:8080/service1" />
            <add baseAddress="net.tcp://localhost:8085/service1/tcp"/>
          </baseAddresses>
        </host>
      </service>
    </services>
    <behaviors>
      <serviceBehaviors>
        <behavior name="default">
          <serviceMetadata httpGetEnabled="true" />
          <serviceDebug includeExceptionDetailInFaults="false" />
          <serviceThrottling maxConcurrentCalls="20" />
        </behavior>
      </serviceBehaviors>
    </behaviors>
    <serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
  </system.serviceModel>
 <system.webServer>
    <modules runAllManagedModulesForAllRequests="true"/>
  </system.webServer>
 
</configuration>
0
Mortarello
Asked:
Mortarello
  • 2
2 Solutions
 
MortarelloAuthor Commented:
I got a erro msg ( Could not find a base address that matches scheme net.tcp for the endpoint with binding NetTcpBinding. Registered base address schemes are [http] )
0
 
tovvenkiCommented:
Hi,
do you still have the issue
if yes, where is the service hosted and how do the clients access it.

see if this helps you

http://ozkary.blogspot.com/2011/06/wcf-could-not-find-base-address-that.html

Thanks and regards,
Venki

0
 
MortarelloAuthor Commented:
Thanks Guys
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now