Resolve Multiple HTTPS Port BindingsΒΆ
Note: This was introduced in .NET 6, it should not affect older versions
Note: This only occurs when IIS Sites have multiple HTTPS port bindings
If Web Applications are down, and you see this message in the log file:
Cannot determine the https port from IServerAddressesFeature, multiple values were found. Set the desired port explicitly on HttpsRedirectionOptions.HttpsPort.
The Web Applications can brought back online with a minor modification to the appsettings.json file for the application.
In the root of the appsettings.json add a new entry and restart the IIS application
{
...
"https_port": 443
}