c# - IIS8 There was no endpoint listening at net.tcp: -


i have wcf service host in iis8 , want use net.tcp binding.

i have configuration:

web.config:

<service behaviorconfiguration="mybehavior"   name="decryptservice.emailcenterdecrypttcp">     <host>       <baseaddresses>         <add baseaddress="net.tcp://xx.xx.xx.xx:808/virtualfolder/service.svc" />       </baseaddresses>     </host>      <endpoint address=""           binding="nettcpbinding"           bindingconfiguration="portsharingbinding"           name="myserviceendpoint"           contract="servicenamespace.iservice">     </endpoint>      <endpoint address="mextcp"           binding="mexhttpbinding"           bindingconfiguration=""           name="myservicemextcpbidingendpoint"           contract="imetadataexchange" /> </service> 

when try consume service in same machine iis8 following configuration works fine:

<client>         <endpoint address="net.tcp://yy.yy.yy.yy:808/virtualfolder/service.svc"             binding="nettcpbinding" bindingconfiguration="myserviceendpoint"             contract="servicereference1.iservice" name="myserviceendpoint" />     </client> 

yy.yy.yy.yy local ip of machine when try consume service in machine changing yy.yy.yy.yy external ip of machine (zz.zz.zz.zz) runs iis8 following error:

there no endpoint listening @ net.tcp://zz.zz.zz.zz/virtualfolder/service.svc accept message. caused incorrect address or soap action. see innerexception, if present, more details. 

any ideas? , sorry bad english

edit:

i made console application running servicehost replacing iis , configuration works on internet

var svh = new servicehost(typeof (service)); svh.addserviceendpoint(typeof (servicenamespace.iservice), new nettcpbinding(securitymode.none), "net.tcp://serverlocalip:808"); svh.open();  console.writeline("server - running..."); stopflag.waitone();  console.writeline("server - shutting down..."); svh.close();  console.writeline("server - shut down!"); 

any idea whats wrong iis running same service on internet? locally works. thanks

you need setup iis receive net.tcp connection.

under advanced settings of iis application, under enabled protocols make sure have http,net.tcp note there no space, if have space fail.

http://blogs.msdn.com/b/swiss_dpe_team/archive/2008/02/08/iis-7-support-for-non-http-protocols.aspx


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -