You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The web tasks which derive from NAnt.Contrib.Tasks.Web.WebBase have the iisserver attribute which allows the correct server to be identified as "{hostname}:{port}" e.g. "localhost:80".
However this does not work if the server concerned uses a secure (HTTPS) binding e.g. "localhost:443". It fails to find the server and this results in a "No website is bound to {port}" exception.
The cause of this is in the FindServerInstance method of WebBase which enumerates bindings found under the "ServerBindings" property. Secure bindings do not get added to this collection but are present in the "SecureBindings" property instead msdn reference.
This method should be amended to enumerate both SecureBindings and ServerBindings collections when searching for the server.
The text was updated successfully, but these errors were encountered:
The web tasks which derive from NAnt.Contrib.Tasks.Web.WebBase have the iisserver attribute which allows the correct server to be identified as "{hostname}:{port}" e.g. "localhost:80".
However this does not work if the server concerned uses a secure (HTTPS) binding e.g. "localhost:443". It fails to find the server and this results in a "No website is bound to {port}" exception.
The cause of this is in the FindServerInstance method of WebBase which enumerates bindings found under the "ServerBindings" property. Secure bindings do not get added to this collection but are present in the "SecureBindings" property instead msdn reference.
This method should be amended to enumerate both SecureBindings and ServerBindings collections when searching for the server.
The text was updated successfully, but these errors were encountered: