wcf-endpoint

Service has zero application (non-infrastructure) endpoints

我们两清 提交于 2019-11-27 12:15:51
I recently created a WCF service (dll) and a service host (exe). I know my WCF service is working correctly since I am able to successfully add the service to WcfTestClient. However, I seem to be running into an issue when I comes to utlizing my WCF from a service host (exe). I can add a reference to the WCF (dll) to my service host (exe) and create the necessary componets to the exe; such as the service installer, service host, and the app.config, compile and then finally install the exe using InstallUtil. But, when I tried to start the service in the Microsoft Management Console, the service

Programmatically adding an endpoint

核能气质少年 提交于 2019-11-27 08:09:15
问题 I have a WCF service that I am connecting in client application. I am using following in configuration file. <system.serviceModel> <bindings> <basicHttpBinding> <binding name="MyNameSpace.TestService" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" maxBufferSize="2147483647" maxBufferPoolSize="524288" maxReceivedMessageSize="2147483647" messageEncoding="Text"

WCF is using the computer name instead of the IP address and cannot be resolved

丶灬走出姿态 提交于 2019-11-27 04:31:26
问题 I have a WCF service that works fine on the LAN but when trying to access it from outside the service reference fails. My WCF service is hosted on a win2k3 box that is using a static IP no domain. 回答1: This is what worked for me. In config file < serviceHostingEnvironment multipleSiteBindingsEnabled="true" /> < / system.serviceModel > If it is set to false, I was getting that crazy computername substitution. multipleSiteBindingsEnabled="true" seems to be all that I have to do for this to work

Service has zero application (non-infrastructure) endpoints

自古美人都是妖i 提交于 2019-11-26 18:09:56
问题 I recently created a WCF service (dll) and a service host (exe). I know my WCF service is working correctly since I am able to successfully add the service to WcfTestClient. However, I seem to be running into an issue when I comes to utlizing my WCF from a service host (exe). I can add a reference to the WCF (dll) to my service host (exe) and create the necessary componets to the exe; such as the service installer, service host, and the app.config, compile and then finally install the exe