Monday, January 1, 2018

asp net mvc Change https to different port IIS Express applicationhost config

asp net mvc Change https to different port IIS Express applicationhost config




asp.net mvc - Change https to different port IIS Express applicationhost.config -

i start 2 websites in sln of mine. because https port 44300 used both websites, startup of sec website fails iisexpress error.

if alter https port in applicationhost.config 1 of sites gets reverted 44300. deleted https binding entries, added back.

<site name="prj(1)" id="130"> <application path="/" applicationpool="clr4integratedapppool"> <virtualdirectory path="/" physicalpath="path" /> </application> <bindings> <binding protocol="http" bindinginformation="*:53884:localhost" /> <binding protocol="https" bindinginformation="*:44300:localhost" /> </bindings> </site> <site name="prj2" id="102"> <application path="/" applicationpool="clr4integratedapppool"> <virtualdirectory path="/" physicalpath="path" /> </application> <bindings> <binding protocol="http" bindinginformation="*:54777:localhost" /> <binding protocol="https" bindinginformation="*:44300:localhost" /> </bindings> </site>

i found reply in thread on so: iis express defaulting port 44300 https when enabling ssl

the binding:

<binding protocol="https" bindinginformation="*:44300:localhost" />

will added iis express applicationhost.config sooner or later, no matter how many times seek remove it.

from link though, there mention of "the port 44300 sequential: 00 mean first application have configured ssl enabled; 01 sec 1 , on."

so changed bindings f5 multiple websites, using iis express @ same time to:

website1:

website2:

<binding protocol="https" bindinginformation="*:44301:localhost" />

asp.net-mvc iis-7 iis-7.5 iis-express

go to link download

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.