title: IIS 8.5 - Change the port my web service application runs on
body: <p>I have an ASP.NET web service application that I want to run on a port other than port 80. I found this article on binding:</p>
  
  <p><a href="http://www.iis.net/configreference/system.applicationhost/sites/site/bindings/binding" rel="nofollow noreferrer">http://www.iis.net/configreference/system.applicationhost/sites/site/bindings/binding</a></p>
  
  <p>But I can't figure out how to implement it properly. The GUI method it describes seems the easiest but step 3 says:</p>
  
  <blockquote>
    <ol start="3">
    <li>In the <strong>Actions</strong> pane, click <strong>Bindings...</strong></li>
    </ol>
  </blockquote>
  
  <p>As you can see, that option doesn't exist for me (IIS 8.5):</p>
  
  <p><a href="https://i.stack.imgur.com/iM3wy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iM3wy.png" alt="enter image description here"></a></p>
  
  <p>They also provide this configuration sample:</p>
  
  <pre><code>&lt;site name="Contoso" id="2"&gt;
     &lt;application path="/" applicationPool="Contoso"&gt;
        &lt;virtualDirectory path="/" physicalPath="C:\inetpub\wwwroot" /&gt;
     &lt;/application&gt;
     &lt;bindings&gt;
        &lt;binding protocol="http" bindingInformation="192.168.0.1:80:www.contoso.com" /&gt;
        &lt;binding protocol="https" bindingInformation="*:443:" /&gt;
     &lt;/bindings&gt;
  &lt;/site&gt;
  </code></pre>
  
  <p>I'm assuming that goes in the web.config? I get a configuration error that says <code>Unrecognized configuration section system.applicationHost</code> when I add it like this:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;configuration&gt;
    &lt;appSettings/&gt;
    &lt;connectionStrings/&gt;
    &lt;system.applicationHost&gt;
      &lt;sites&gt;
        &lt;site name="MyWebService" id="1"&gt;
          &lt;bindings&gt;
            &lt;binding protocol="http" bindingInformation="*:443" /&gt;
          &lt;/bindings&gt;
        &lt;/site&gt;
      &lt;/sites&gt;
    &lt;/system.applicationHost&gt;
  &lt;!-- more stuff I didn't mess with beyond here --&gt;
  </code></pre>
  
  <p>But when I remove the <code>system.applicationHost</code> tag, I just get a different error. What am I doing wrong?</p>
  
  <p>Thanks!</p>