c# - Wcf service Host on another computer -


I've got some topics about this but I can not find any solution for this. When I host my WCF service on the same machine, everything is fine. But when I host it on another machine compared to the client then the problems are visible

When I open the Open function from the client side, then the timeout exception occurs.

Server Side Config:

  & lt; Service name = "connectors appconnector" & gt; & Lt; Endpoint address = "" binding = "custom binding" binding configuration = "messaging" contract = "contracts.isc contract" & gt; & Lt; / Endpoint & gt; & Lt; Endpoint address = "Max" binding = "MaxHttpending" contract = "IMAXADEXXchange" /> & Lt; Host & gt; & Lt; BaseAddresses & gt; & Lt; BaseAddress = "& lt; ADDRESS & gt; / Messenger Service" / & gt; Add & lt; / BaseAddresses & gt; & Lt; / Host & gt; & Lt; / Services & gt; & Lt; Custombinding & gt; & Lt; Binding name = "mess-binding" & gt; & Lt; Trusted Sessions / & gt; & Lt; Overall Duplex / & gt; & Lt; Alone / & gt; & Lt; TextMessageEncoding messageSpecification = "SOAP 12 WSADressing 10" writeNetworking = "UTF-8" /> & Lt; HttpTransport authenticationSham = "Anonymous" BypassProxyConoclonal = "false" hostnamenamemparisonmode = "strongWordCard" proxyauthenticationShame = "benami" realm = "" use default webprocx = "true" /> & Lt; / Binding & gt; & Lt; / CustomBinding & gt;  

Service-side code:

  service host host = new service host (manager.AppConnector); Host.Open ();  

Earlier I was simple wsdualhttpbinding to support callback, but found a solution like this to stop the security.

Client-side config:

  & lt ;? XML version = "1.0"? & Gt; & Lt; Configuration & gt; & Lt; Startup & gt; & Lt; Supported serial version = "v4.0" sku = ".NETFramework, version = v4.0" /> & Lt; / Startup & gt; & Lt; System.serviceModel & gt; & Lt; Binding & gt; & Lt; WsDualHttpBinding & gt; & Lt; Binding name = "custombindings_iscIcontract" & gt; & Lt; Safety mode = "none" /> & Lt; / Binding & gt; & Lt; / WsDualHttpBinding & gt; & Lt; / Binding & gt; & Lt; Customers & gt; & Lt; Endpoint address = "& lt; ADDRESS & gt; / Messenger service" binding = "wsDualHttpBinding" binding configuration = "custombanking_isacr contract" contract = "service reference 1.isiss contract" name = "custom binding_isacr contract" /> & Lt; / Customer & gt; & Lt; /system.serviceModel> & Lt; / Configuration & gt;  

Client-side code:

  Public class test class: IServiceContractClallback {Public Zero Start () {InstanceContext Reference = New Instance Contact (this); ServiceContractClient Client = New ServiceCustomer Client (reference); Console.WriteLine ("Open"); Client.Open (); Console.WriteLine ("opened"); } Public Zero MessageReceived (Service Message Message) {New NotImplementedException Throwing; } Public Zero Message Status (ServiceStatus Status) {New Non Imulated Exposition (Throw); }}  

This throws a timeout option each time I try to connect with the client, the firewall is off the server side, I can enter the browser / messenger service. What is wrong?


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -