title: Configuration binding extension 'system.serviceModel/bindings/clearUsernameBinding' could not be found
body: <p>hi i am tring to use this article for making my wcf service authenticate without SSL</p>
  
  <p><a href="http://webservices20.blogspot.in/2008/11/introducing-wcf-clearusernamebinding.html" rel="nofollow">http://webservices20.blogspot.in/2008/11/introducing-wcf-clearusernamebinding.html</a></p>
  
  <p>but i am geting this error when i try to compile :</p>
  
  <pre><code>&lt;system.serviceModel&gt;
  &lt;extensions&gt;
    &lt;bindingExtensions&gt;
      &lt;add name="clearUsernameBinding" type="ClearUsernameCollectionElement, ClearUsernameBinding" /&gt;
    &lt;/bindingExtensions&gt;
  &lt;/extensions&gt;
  &lt;behaviors&gt;
    &lt;serviceBehaviors&gt;
      &lt;behavior name="ServiceBehavior"&gt;
        &lt;serviceCredentials&gt;
          &lt;userNameAuthentication userNamePasswordValidationMode="Custom" customUserNamePasswordValidatorType="MyValidator,App_Code"/&gt;
        &lt;/serviceCredentials&gt;
  
        &lt;!--To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment--&gt;
        &lt;serviceMetadata httpsGetEnabled="true"/&gt;
        &lt;!--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--&gt;
        &lt;serviceDebug includeExceptionDetailInFaults="false"/&gt;
      &lt;/behavior&gt;
      &lt;behavior name="SampleServiceBehaviour"&gt;
        &lt;serviceMetadata httpsGetEnabled="true"/&gt;
        &lt;serviceDebug includeExceptionDetailInFaults="false"/&gt;
        &lt;serviceCredentials&gt;
          &lt;userNameAuthentication userNamePasswordValidationMode="Custom"
          customUserNamePasswordValidatorType="MyUserNameValidator, App_Code" /&gt;
        &lt;/serviceCredentials&gt;
      &lt;/behavior&gt;
    &lt;/serviceBehaviors&gt;
  &lt;/behaviors&gt;
  &lt;services&gt;
    &lt;service name="Service" behaviorConfiguration="SampleServiceBehaviour"&gt;
      &lt;endpoint address="~/QuadraService/Service.svc" binding="wsHttpBinding" contract="IService" bindingConfiguration="Binding1"/&gt;
      &lt;endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange"/&gt;
      &lt;endpoint binding="clearUsernameBinding" bindingConfiguration="myClearUsernameBinding" contract="IService" /&gt;
    &lt;/service&gt;
  &lt;/services&gt;
  &lt;serviceHostingEnvironment multipleSiteBindingsEnabled="true"/&gt;
  &lt;bindings&gt;
  
    &lt;clearUsernameBinding&gt;
      &lt;binding name="myClearUsernameBinding"
   messageVersion="Soap12"&gt;
      &lt;/binding&gt;
    &lt;/clearUsernameBinding&gt;
  
    &lt;wsHttpBinding&gt;
  
      &lt;binding name="Binding1"&gt;
        &lt;!-- UsernameToken over Transport Security --&gt;
        &lt;security mode="TransportWithMessageCredential" &gt;
          &lt;message clientCredentialType="UserName"/&gt;
        &lt;/security&gt;
      &lt;/binding&gt;
    &lt;/wsHttpBinding&gt;
  
  
  
  &lt;/bindings&gt;
  </code></pre>
  
  <p></p>
  
  <pre><code> 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: Configuration binding extension 'system.serviceModel/bindings/clearUsernameBinding' could not be found. Verify that this binding extension is properly registered in system.serviceModel/extensions/bindingExtensions and that it is spelled correctly.
  </code></pre>
  
  <p>please help </p>