Note that there are some explanatory texts on larger screens.

plurals
  1. POCould not connect to net.tcp://localhost... TCP error code 10061
    primarykey
    data
    text
    <p>Referring to a video <a href="http://www.google.com/url?sa=t&amp;source=web&amp;cd=4&amp;sqi=2&amp;ved=0CCwQtwIwAw&amp;url=http%3A%2F%2Fdebugmode.net%2F2010%2F06%2F16%2Fvideowcfnetcpinwindowsservice%2F&amp;rct=j&amp;q=hosting%20wcf%20in%20windows%20service%20example%20nettcpbinding&amp;ei=boYlTuDwNI_PrQf08dW1CQ&amp;usg=AFQjCNHLIlo3nOeav1O5NzNtIAVxQ6gywQ&amp;cad=rja" rel="nofollow">tutorial</a> about WCF service in windows service,i have created a sample WCF service and hosted that Service with netTcpBinding in Windows Service.(since i want this WCF service to run as windows service)</p> <p>Its a simple service which adds/deletes/loads employee details, and is consumed by a windows forms application.that worked fine,when i build the whole solution(consisting wcf service + windows service + client app), however when i wanted to verify that my client isn't directly referring to the project in the solution, so i excluded both the services(wcf+windows) from my solution. it stopped working throwing an error, reading:</p> <p>Could not connect to net.tcp://localhost:8010/EmployeeService.Service1/. The connection attempt lasted for a time span of 00:00:02.0180000. TCP error code 10061: No connection could be made because the target machine actively refused it 127.0.0.1:8010.</p> <p>Important point that might help to answer:</p> <ul> <li>WCF service and windows service have identical app.config</li> <li>Windows service is running as a service</li> </ul> <p><em>this is my client app.config</em></p> <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt; &lt;configuration&gt; &lt;system.serviceModel&gt; &lt;bindings&gt; &lt;netTcpBinding&gt; &lt;binding name="netTcpEndPoint" 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="65536" maxConnections="10" maxReceivedMessageSize="65536"&gt; &lt;readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" /&gt; &lt;reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false" /&gt; &lt;security mode="Transport"&gt; &lt;transport clientCredentialType="Windows" protectionLevel="EncryptAndSign" /&gt; &lt;message clientCredentialType="Windows" /&gt; &lt;/security&gt; &lt;/binding&gt; &lt;/netTcpBinding&gt; &lt;/bindings&gt; &lt;client&gt; &lt;endpoint address="net.tcp://localhost:8010/EmployeeService.Service1/" binding="netTcpBinding" bindingConfiguration="netTcpEndPoint" contract="Service1.IService1" name="netTcpEndPoint"&gt; &lt;identity&gt; &lt;userPrincipalName value="user@company.com" /&gt; &lt;/identity&gt; &lt;/endpoint&gt; &lt;/client&gt; &lt;/system.serviceModel&gt; &lt;/configuration&gt; </code></pre> <p>any help would be greatly appreciated....</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload