3

I'm trying to run a webservice on a Windows Server 2012 R2, but I get the following error

Could not find a base address that matches scheme net.tcp for the endpoint with binding NetTcpBinding. Registered base address schemes are [http].

The solutions I have tried so far :

My web.config file

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <system.serviceModel>
    <bindings>
      <netTcpBinding>
        <binding name="Binding1" >
          <security mode="Message">
            <message clientCredentialType="Certificate"/>
          </security>
        </binding>
      </netTcpBinding>
    </bindings>
    <services>
      <service name="ServerName" behaviorConfiguration="ServerInternet" >
        <endpoint address=""
            binding="netTcpBinding"
            bindingConfiguration="Binding1"
            contract="Namespace.Interface"
            bindingNamespace="http://www.mycompany.com/webservices"
        />

        <host>
          <baseAddresses>
            <add baseAddress="net.tcp://localhost:8080/WebService/" />
          </baseAddresses>
        </host>
      </service>
    </services>
    <behaviors>
      <serviceBehaviors>
        <behavior name="ServerInternet">
          <!-- certificate infos here -->
          <serviceDebug includeExceptionDetailInFaults="true" />
        </behavior>
      </serviceBehaviors>
    </behaviors>
  </system.serviceModel>
</configuration>

The advanced settings :

Advanced settings, net.tcp is enabled

The functionalities I have installed on the server :

Functionalities

Pool settings :

  • Classic pipeline
  • CLR .NET 4.0
  • LocalService Identity

The site bindings

enter image description here

What could be the reasons of this error?

Community
  • 1
  • 1
Pascal Goldbach
  • 977
  • 1
  • 15
  • 34

1 Answers1

3

The problem would be that you don't have TCP Activation and TCP Port Sharing enabled in server manager, which doesn't add up, as this is required for net.tcp in IIS.

tomasr
  • 13,683
  • 3
  • 38
  • 30