wcf - There was no endpoint listening at net.tcp://localhost:10001 that could accept the message -
i'm having problem when moving wcf service windows 2003 server windows 2008 server. service communicates between web site , windows service on same server. service runs below configurations on both 2003 server , locally on windows 7 computers.
on 2008 server, i'm getting following error message
exception type: system.servicemodel.endpointnotfoundexception
message: there no endpoint listening @ net.tcp://localhost:10001/dcfdirectcert/securityservice accept message. caused incorrect address or soap action.
configuration web site
<system.servicemodel> <diagnostics> <messagelogging logentiremessage="true" logmalformedmessages="true" logmessagesatservicelevel="true" logmessagesattransportlevel="true" /> </diagnostics> <bindings> <nettcpbinding> <binding name="directcertbindingconfig"> <security mode="none" /> </binding> <binding name="directcert.services.directcertsecurityservice.bindingconfig" closetimeout="00:01:00" opentimeout="00:01:00" receivetimeout="00:10:00" sendtimeout="00:01:00" transactionflow="false" transfermode="buffered" transactionprotocol="oletransactions" hostnamecomparisonmode="strongwildcard" listenbacklog="10" maxbufferpoolsize="524288" maxbuffersize="1000000" maxconnections="10" maxreceivedmessagesize="1000000"> <readerquotas maxdepth="32" maxstringcontentlength="8192" maxarraylength="16384" maxbytesperread="4096" maxnametablecharcount="16384" /> <reliablesession ordered="true" inactivitytimeout="00:10:00" enabled="false" /> <security mode="transport"> <transport clientcredentialtype="windows" protectionlevel="encryptandsign" /> <message clientcredentialtype="windows" /> </security> </binding> </nettcpbinding> </bindings> <client> <endpoint address="net.tcp://localhost:10001/directcert/securityservice" binding="nettcpbinding" bindingconfiguration="directcert.services.directcertsecurityservice.bindingconfig" contract="idirectcertsecurityservice" name="idirectcertsecurityservice" /> </client> </system.servicemodel>
configuration windows service
<system.servicemodel> <diagnostics> <messagelogging logentiremessage="true" logmalformedmessages="true" logmessagesatservicelevel="true" logmessagesattransportlevel="true" /> </diagnostics> <bindings> <nettcpbinding> <binding name="directcert.services.directcertsecurityservice.bindingconfig"> <security mode="transport"> <transport clientcredentialtype="windows" protectionlevel="encryptandsign" /> <message clientcredentialtype="windows" /> </security> </binding> </nettcpbinding> </bindings> <services> <service behaviorconfiguration="directcert.services.directcertsecurityservice.behavior" name="directcertsecurityservice"> <endpoint address="" binding="nettcpbinding" bindingconfiguration="directcert.services.directcertsecurityservice.bindingconfig" contract="idirectcertsecurityservice" /> <endpoint address="mex" binding="mextcpbinding" bindingconfiguration="" contract="imetadataexchange" /> <host> <baseaddresses> <add baseaddress="net.tcp://localhost:10001/directcert/securityservice" /> </baseaddresses> </host> </service> </services> <client> <endpoint address="net.msmq://localhost/private/directcert" binding="netmsmqbinding" bindingconfiguration="directcert.services.directcertmatchservice.bindingconfig" contract="idirectcertmatchservice" name="directcertmatchserviceclient" /> </client> <behaviors> <servicebehaviors> <behavior name="mybehaviorconfiguration"> <servicedebug includeexceptiondetailinfaults="true" /> </behavior> <behavior name="directcert.services.directcertsecurityservice.behavior"> <servicemetadata /> <servicedebug includeexceptiondetailinfaults="true" /> <datacontractserializer /> <servicetimeouts /> </behavior> </servicebehaviors> </behaviors> </system.servicemodel>
what can see is, security-mode of both bindings not same (transport vs. none).
Comments
Post a Comment