Windows服务中的WCF库主机返回错误

时间:2013-02-04 06:55:26

标签: c# wcf windows-services wcf-library

我是WCF服务的新手,我有一个在Windows服务中托管的 WCF库(DLL),这个服务是由反射调用的DLL调用的,我有以下应用程序Windows服务中的.config和一起调用整个事物的EXE:

  <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>

当我在部署环境中运行时,它给出了一条错误消息:

  

服务'S3.IcVerfication.Wcf.Service.VerifyIC'没有应用程序   (非基础设施)端点。

它也不适用于WCFTestClient。 返回一条错误消息,描述没有端点......等等。

我做错了什么?

0 个答案:

没有答案