Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>To answer at those question :</p> <blockquote> <p>We ran some tests and we found out that when we're adding bindings in IIS, it doesn't update config file of our service. That means that we would need to maintain the configuration in two different places. It's not logic, right ?</p> </blockquote> <p>When you use IIS to host your service, you must configure your App.config file or web.config file to allow IIS to expose some binding, so in your configuration file, you will put all your binding you allow to your wcf service. Http, net.tcp etc...</p> <p>In your binding you will not specified address, because you will specified those address in IIS directly.</p> <p>In IIS you must allow the binding available in the advanced settings of your web site. After that you will set new binding for your web site "web service" and add every bindings you want listen, and specify the address.</p> <p>You will specify the address directly in IIS.</p> <p>There's an example.</p> <p>Your configuration file:</p> <pre><code>&lt;services&gt; &lt;service name="ServiceName"&gt; &lt;endpoint address="" binding="basicHttpBinding" bindingConfiguration="httpMode" contract="IContract" /&gt; &lt;endpoint address="" binding="netTcpBinding" contract="IContract" /&gt; &lt;endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" /&gt; &lt;/service&gt; &lt;/services&gt; </code></pre> <p>In your IIS advenced setting your will put </p> <blockquote> <p>http,net.tcp in Enabled Protocols</p> </blockquote> <p>After that you will go in your binding into IIS. Put your binding for http normaly and add a new binding net.tcp, in the binding configuration put the port and virtual directory like </p> <blockquote> <p>8001:*</p> </blockquote> <p>This setting allow all connection into the 8001 port for any virtual directory.</p> <p>You also must to have the feature "WCF Activation, (Http activation and Non-Http Activation)" installed on your server.</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. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      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