tags:

views:

24

answers:

1

title is the exception message from wcf service client when i create object of proxy class

i have simple wcf service with

<security mode="Transport"> and <transport clientCredentialType="Basic" />

this is the app.config of client

<system.serviceModel>
    <behaviors>
      <endpointBehaviors>
        <behavior name="NoValidationBehavior">
          <clientCredentials>
            <serviceCertificate>
              <authentication certificateValidationMode="None"/>
            </serviceCertificate>
          </clientCredentials>
        </behavior>
      </endpointBehaviors>
     </behaviors>
    <bindings>
      <wsHttpBinding>
        <binding name="WSHttpBinding_IService1" closeTimeout="00:01:00"
            openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
            bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard"
            maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
            messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true"
            allowCookies="false">
          <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
              maxBytesPerRead="4096" maxNameTableCharCount="16384" />
          <reliableSession ordered="true" inactivityTimeout="00:10:00"
              enabled="false" />
          <security mode="Transport">
            <transport clientCredentialType="Basic" proxyCredentialType="None"
                realm="" />
            <message clientCredentialType="Windows" negotiateServiceCredential="true" />
          </security>
        </binding>
      </wsHttpBinding>
    </bindings>
    <client>
      <!--kind="webHttpEndpoint"-->
      <endpoint address="https://localhost:1111/Service1.svc" binding="wsHttpBinding"
          bindingConfiguration="WSHttpBinding_IService1" contract="ServiceReference1.IService1"
          name="WSHttpBinding_IService1" endpointConfiguration="NoValidationBehavior2"/>
    </client>

  </system.serviceModel>

could somebody help me ?!

P.S. sorry for my english

A: 

Hello,

I think we have solved it on msdn forum. For your comment question: endpointConfiguration and kind attributes indeed relates to WCF 4.0. It relates to new feature called standardEndpoints which allows definition of "endpoint templates".

Best regards, Ladislav

Ladislav Mrnka