Note that there are some explanatory texts on larger screens.

plurals
  1. POWhat exactly do I need to do to host a WCF service in IIS 7.0 using netTcpBinding?
    primarykey
    data
    text
    <p>I've been trying for more than a week without any success at all, to host a very simple HelloWorld-like wcf service using netTcpBinding.</p> <p>With http, everything is ok. I can access my service even from a remote machine. But with tcp problems arise.</p> <p>I have performed all the steps I'm supposed to, in order to host my service in WAS:</p> <ul> <li><p>.Net 3.0 Features are enabled, including http and non-http Activation</p></li> <li><p>I have granted 'Network Service' and 'IIS_IUSRS' the following permissions to the folder containing the site:</p> <ul> <li>Read &amp; Execute</li> <li>List Folder Contents</li> <li>Read</li> </ul></li> <li><p>Opened de ports 8100 and 8086 in the firewall.</p></li> <li><p>At IIS Manager/ Actions / Bindings the following bindings are set up:</p> <ul> <li>http 8100:* </li> <li>net.tcp 8086:*</li> </ul></li> <li><p>At IIS Manager/ Manage Web Site / Advanced Settings, both, http and net.tcp protocols are enabled.</p></li> </ul> <p>The original problem I had was that I was able to reach the service via http but when trying with tcp I got the following error:</p> <p><strong>"The message could not be dispatched because de service at the endpoint addres 'net.tcp://myDomain/HelloWorld.Hello.svc' is unavailable for the protocol address.</strong>"</p> <p>I found a post in this site whose author had the same problem and It was solved by reinstalling .net 3.0 features. So I tryed that. I also tryed to reinstall IIS 7.0 just in case. Now, the situation is worse than it was at the begining. If I configure an endpoint with tcpBinding in my Web.Config I can't even reach my service at it's http address using IE!! I get the following message:</p> <p><strong>Could not find a base address that matches scheme net.tcp for the endpoint with binding NetTcpBinding. Registered base address schemes are [http].</strong></p> <p>The Web.Config file is as follows:</p> <p> </p> <p><br> <pre><code> name="HelloWorld.Hello"&gt; &lt;host&gt; &lt;baseAddresses&gt; &lt;add baseAddress="http://myDomain:8100/HelloWorld/" /&gt; &lt;add baseAddress="net.tcp://myDomain:8086/HelloWorld/" /&gt; &lt;/baseAddresses&gt; &lt;/host&gt; &lt;endpoint address="" binding="wsHttpBinding" contract="HelloWorld.IHello" bindingConfiguration="httpInseguro"&gt; &lt;/endpoint&gt; &lt;endpoint address="" binding="netTcpBinding" contract="HelloWorld.IHello" bindingConfiguration="netTcpInseguro"&gt; &lt;/endpoint&gt; &lt;endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" /&gt; &lt;/service&gt; &lt;/services&gt; &lt;bindings&gt; &lt;wsHttpBinding&gt; &lt;binding name ="httpInseguro"&gt; &lt;security mode ="None" /&gt; &lt;/binding&gt; &lt;/wsHttpBinding&gt; &lt;netTcpBinding&gt; &lt;binding name ="netTcpInseguro"&gt; &lt;security mode ="None" /&gt; &lt;/binding&gt; &lt;/netTcpBinding&gt; &lt;/bindings&gt; </code></pre> <p>and the .svc file is like this:</p> <p>Could anyone please give me a clue about what's going on? I really don't know what else to do. This is being a real headacke becasuse using http binding is not an option. Thanks in advance.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    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.
 

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