Click here to Skip to main content
15,884,537 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
There is an error:There is no endpoint behavior named 'webHttpBehav­ior'.
Here is the code, but there is a endpoint named 'webHttpBehav­ior'.

XML
<?xml version="1.0"?>
<configuration>
  <system.web>
    <authorization>
      <deny users="?"/>
    </authorization>
    <compilation debug="true" targetFramework="4.0"/>
    <httpRuntime/>
  </system.web>
  <system.serviceModel>
    <services>
      <service name="WebApplication2.Service.Service1">
        <endpoint address="" binding="webHttpBinding" contract="WebApplication2.Service.I­Service1" bindingConfiguration="ApiQuotaBindi­ng" behaviorConfiguration="webHttpBehav­ior"></endpoint>
        <host>
          <baseAddresses>
            <add baseAddress="http://localhost:11008/Service"/>
          </baseAddresses>
        </host>
      </service>
    </services>
    <bindings>
      <!-- Customizations for REST service -->
      <webHttpBinding>
        <!-- Limits set to 10 MB (specified value in bytes) -->
        <binding name="ApiQuotaBinding" maxReceivedMessageSize="1048576000" maxBufferPoolSize="1048576000" maxBufferSize="1048576000" closeTimeout="00:03:00" openTimeout="00:03:00" receiveTimeout="00:10:00" sendTimeout="00:03:00">
          <readerQuotas maxDepth="32" maxStringContentLength="104857600" maxArrayLength="1048576000" maxBytesPerRead="1048576000" />
          <security mode="None" />
        </binding>
      </webHttpBinding>
    </bindings>
    <behaviors>
      <endpointBehaviors>
        <behavior name="webHttpBehavior">
          <webHttp />
        </behavior>
      </endpointBehaviors>
    </behaviors>
  </system.serviceModel>
  <startup>
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
  </startup>
</configuration>




Can someone help me to find the problem?
I copy the code from https://www.youtube.com/watch?v=7oM_68cbip0[^] to me WCF.
Posted
Comments
Herman<T>.Instance 4-Feb-15 7:56am    
HttpMexBinding?
Iris Shing 4-Feb-15 8:28am    
What is httpmexbinding?
Herman<T>.Instance 4-Feb-15 8:46am    
google it!
Herman<T>.Instance 4-Feb-15 8:47am    
sorry it is mexHttpBinding -> https://www.google.nl/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=mex%20binding%20in%20wcf

1 solution

Hi Iris Shing,
your code is having 2 error-
1. It is reading webHttpBehav­ior as webHttpBehav-­ior
2. It is reading ApiQuotaBinding as ApiQuotaBind-ing

So just rename them again manually, and it will start working fine.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900