The binding at system.serviceModel/bindings/wsHttpBinding does not have... error

I am trying to include two endpoints in my WCF web based service - wsHttp and netTcp. As shown in the Web.config below I have added them, but receive the following error when when I compile and click on Service.svc in my web browser:

Error page:

Server Error in '/MyService' Application. Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: The binding at system.serviceModel/bindings/wsHttpBinding does not have a configured binding named 'wsHttpBinding'. This is an invalid value for bindingConfiguration.

Source Error:

Line 16: </baseAddresses> Line 17:         </host>  Line 18:  <endpoint address="http://localhost:8090/Services/MyService" Line 19:                   binding="wsHttpBinding" Line 20:                 bindingConfiguration="wsHttpBinding"

Source File: C:\MyService\web.config    Line: 18

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1


<?xml version="1.0"?>
    <compilation debug="false" targetFramework="4.0" />
      <add scheme="http" binding="wsHttpBinding"/>
            <add baseAddress="net.tcp://localhost:9001/"/>
        <endpoint address="http://localhost:8090/Services/MyService"
                  contract="Microsoft.ServiceModel.Samples.IService" />
        <endpoint address="net.tcp://localhost:9000/Services/MyService"
                  contract="Microsoft.ServiceModel.Samples.IService" />    
          <!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
          <serviceMetadata httpGetEnabled="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 -->
          <serviceDebug includeExceptionDetailInFaults="false"/>
    <serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
    <modules runAllManagedModulesForAllRequests="true"/>



take this out:


from here:


I don't thing that you have properly answer the question I'am sure he want to implement the a binding configuration so instead of removing bindingConfiguration="wsHttpBinding, just make sure that the binding in your and point match the one in your configure file. Hope this will work


        <!--Configure the Service operation instance object timeout of an endpoint -->
        <binding name="netTCP" receiveTimeout="00:00:10" />

<endpoint address="PerSessionService" binding="netTcpBinding" contract="InstanceContext_PerSessionService.IPerSessionService" bindingConfiguration="netTCP">

Need Your Help

jQuery Ajax checkbox state

jquery ajax checkbox state

I have checkboxes on my page for which I would like to send their state back to the database via ajax. I know how to use jquery with ajax, but I don't know how to get the checked state, both check...

SQL Server trigger on insert,delete & update on table

sql-server datatrigger

I have a table Product and another table ProductLog.