Skip to content

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

@dezfowler

Description

@dezfowler

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions