C# Windows服务中的WCF库主机返回错误
我是WCF服务的新手,我在Windows服务中托管了一个WCF库(DLL),该服务由反射调用的DLL调用,我在Windows服务中有以下app.config和调用所有内容的EXE:C# Windows服务中的WCF库主机返回错误,c#,wcf,windows-services,wcf-library,C#,Wcf,Windows Services,Wcf Library,我是WCF服务的新手,我在Windows服务中托管了一个WCF库(DLL),该服务由反射调用的DLL调用,我在Windows服务中有以下app.config和调用所有内容的EXE: <system.serviceModel> <bindings> <wsHttpBinding> <binding name="WSHttpBinding_IVerifyIC" closeTimeout="00:01:00"
<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上也不起作用。
返回一条错误消息,说明没有端点。。。等
我做错了什么?正如消息所说:没有端点。可能不是客户端配置有此错误,而是服务器端。。在服务器端,客户端部分错误-必须有一个服务部分。那么我应该如何更改此配置文件?您应该使用两个不同的配置文件:myservicecapp.config和MyClientApp.config。这里描述了服务器配置:并且应该与客户端端点配置非常相同。