Originally WCF only used < BasicHttpBinding >, now added net.tcp protocol. After adding server reported error Could not find a base address that matches scheme net.tcp for the endpoint with binding NetTcpBinding. Registered base address schemes are [http]., checked Web.config and website configuration still reported error. Finally referred to WCF: How to host net.tcp protocol to IIS, in Website->Binding->Add net.tcp protocol, situation solved. If just starting configuration, don’t forget to add net.tcp protocol in advanced settings
<behaviors> <serviceBehaviors> <behavior> <!-- To avoid disclosing metadata information, set the values below to false before deployment --> <serviceMetadatahttpGetEnabled="true"httpsGetEnabled="true"/> <!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information --> <serviceDebugincludeExceptionDetailInFaults="false"/> </behavior> </serviceBehaviors> </behaviors> <protocolMapping> <addbinding="basicHttpsBinding"scheme="https"/> <addscheme="net.tcp"binding="netTcpBinding" /> </protocolMapping> <serviceHostingEnvironmentaspNetCompatibilityEnabled="true"multipleSiteBindingsEnabled="true"/> </system.serviceModel> <system.webServer> <modulesrunAllManagedModulesForAllRequests="true"/> <!-- To browse web app root directory during debugging, set the value below to True. Set this value to False before deployment to avoid disclosing web app folder information. --> <directoryBrowseenabled="true"/> </system.webServer>