asp.net - IIS 8.5 - Change the port my web service application runs on -


i have asp.net web service application want run on port other port 80. found article on binding:

http://www.iis.net/configreference/system.applicationhost/sites/site/bindings/binding

but can't figure out how implement properly. gui method describes seems easiest step 3 says:

  1. in actions pane, click bindings...

as can see, option doesn't exist me (iis 8.5):

enter image description here

they provide configuration sample:

<site name="contoso" id="2">    <application path="/" applicationpool="contoso">       <virtualdirectory path="/" physicalpath="c:\inetpub\wwwroot" />    </application>    <bindings>       <binding protocol="http" bindinginformation="192.168.0.1:80:www.contoso.com" />       <binding protocol="https" bindinginformation="*:443:" />    </bindings> </site> 

i'm assuming goes in web.config? configuration error says unrecognized configuration section system.applicationhost when add this:

<?xml version="1.0"?> <configuration>   <appsettings/>   <connectionstrings/>   <system.applicationhost>     <sites>       <site name="mywebservice" id="1">         <bindings>           <binding protocol="http" bindinginformation="*:443" />         </bindings>       </site>     </sites>   </system.applicationhost> <!-- more stuff didn't mess beyond here --> 

but when remove system.applicationhost tag, different error. doing wrong?

thanks!

  1. most screenshot in question taken when active node in left pane web service , not website under application hosted. can modify bindings @ website level , not web application level. first select website in left pane under web service resides , should able modify bindings. please note modified bindings applicable web applications hosted under website.
  2. you can modify bindings in config file these settings resides in applicationhost.config file located @ c:\windows\system32\inetsrv\config.

you can choose either of above options achieve want.


Comments

Popular posts from this blog

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

apache - How do I stop my index.php being run twice for every user -