Hi,
I'm having problem with determining that a port is already used in IIS and was wandering if someone can point me to the right direction.
My setup:
I have IIS (7.5) and two sites present - oldsite1 on port 80, and oldsite2 on 8080.
In my installer I deploy two websites newsite1 and newsite2, one on port 80 and another on 8080.
I'm using GetFreeTCPPort custom action (two of them) for each site to find a free port. They start search from 80, and 8080 respectively:
execute custom action (getfreetcpport)
set site1_port property
execute custom action (getfreetcpport1)
set site2_port property
However I get strange results, newsite1 gets deployed on port 81 (or if I 81,82 etc taken will get the next available correctly), but the newsite2 always takes 8080. Am I doing something wrong? is it because I'm running two copies of the same action and perhaps return codes (freeport status or something) get mixed up?
Thanks,
Zurab
FOLLOW US
Get the latest news in Application Packaging