Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IIS web tasks do not support sites with secure bindings #40

Open
dezfowler opened this issue Sep 25, 2015 · 0 comments
Open

IIS web tasks do not support sites with secure bindings #40

dezfowler opened this issue Sep 25, 2015 · 0 comments

Comments

@dezfowler
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant