WCF library host in Windows service returns error

84 views Asked by At

I'm new with WCF services, I have a WCF library (DLL) hosted in Windows service, this service is called by a DLL which is being called by reflection, I have the following app.config in Windows service and the EXE that calls the whole things together:

  <system.serviceModel>
    <bindings>
      <wsHttpBinding>
        <binding name="WSHttpBinding_IVerifyIC" 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="Message">
            <transport clientCredentialType="Windows" proxyCredentialType="None"
                realm="" />
            <message clientCredentialType="Windows" negotiateServiceCredential="true"
                algorithmSuite="Default" />
          </security>
        </binding>
      </wsHttpBinding>
    </bindings>
    <client>
      <endpoint address="http://localhost:8732/S3IcVerification/S3.IcVerfication.Wcf.Service/VerifyIC/"
          binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IVerifyIC"
          contract="VerifyIcService.IVerifyIC" name="WSHttpBinding_IVerifyIC">
        <identity>
          <dns value="localhost" />
        </identity>
      </endpoint>
    </client>
  </system.serviceModel>

when I run in deployment environment, it gives me an error message:

Service 'S3.IcVerfication.Wcf.Service.VerifyIC' has zero application (non-infrastructure) endpoints.

It's also doesn't work on WCFTestClient. Which returns an error message describing that there is no endpoints... etc

What did I do wrong?

0

There are 0 answers