none
The IEndpointBehavior 'ClientCredentials' cannot be used on the server side; this behavior can only be applied to clients. RRS feed

  • Question

  • Hi,

     This is my config file.

    <?xml version="1.0" encoding="utf-8" ?>
    <configuration>
      <system.serviceModel>
        <services>
          <service name="ConfigureServiceApp.TaskManager" behaviorConfiguration="TaskManagerBehavior">
            <host>
              <baseAddresses>
                <add baseAddress="http://localhost:8080/ConfigureServiceApp/TaskManager/"/>
              </baseAddresses>
            </host>
            <endpoint address="" binding="wsHttpBinding" bindingConfiguration="configurewshttpbinding"
                             contract="ConfigureServiceApp.ITaskManager" behaviorConfiguration="TaskManagerEndpointBehavior">
              <headers>
                <priority>Expediate</priority>
              </headers>
            </endpoint>
          </service>
        </services>
        <bindings>
          <wsHttpBinding>
            <binding name="configurewshttpbinding" receiveTimeout="00:10:00" sendTimeout="00:10:00"
                           openTimeout="00:10:00" closeTimeout="00:10:00"></binding>
          </wsHttpBinding>
        </bindings>
        <behaviors>
          <endpointBehaviors>
            <behavior name="TaskManagerEndpointBehavior">
              <clientCredentials>
                <windows allowedImpersonationLevel="Identification"/>
              </clientCredentials>
            </behavior>
          </endpointBehaviors>
          <serviceBehaviors>
            <behavior name="TaskManagerBehavior">
              <serviceDebug includeExceptionDetailInFaults="false"/>
              <serviceMetadata httpGetEnabled="false"/>
            </behavior>
          </serviceBehaviors>
        </behaviors>
      </system.serviceModel>
    </configuration> 

    When i run the application, The below error is populating.

    The IEndpointBehavior 'ClientCredentials' cannot be used on the server side; this behavior can only be applied to clients.

    Can u please help how can i resolve the above issue.


    N.Srikanth Reddy
    Friday, August 13, 2010 9:38 AM

Answers