Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

IIS- ensure site issue



  • Hi There,

    I am trying to host a website using new otter script in buildmaster 5.6.5. But i am getting the below issue.
    Unhandled exception: System.AggregateException: One or more errors occurred. ---> System.ArgumentException: The specified HTTPS binding is invalid. at Microsoft.Web.Administration.BindingCollection.Add(Binding binding) at Microsoft.Web.Administration.SiteCollection.Add(String name, String bindingProtocol, String bindingInformation, String physicalPath, Byte[] certificateHash)

    Script i am using to execute is:
    IIS::Ensure-Site ( Name: somesitename, AppPool: somesitenameAppPool, Path: C:\inetpub\wwwroot\somesitename, Protocol: http, Binding: localhost, Exists: true );

    Quick response apprecited.

    Thanks,
    Srinivas.

    Product: BuildMaster
    Version: 5.6.5


  • inedo-engineer

    Hello Srinivas,

    The port number is required in the binding, so it should be 127.0.0.1:80, or *:80 if you want it to be accessible externally.

    From the documentation:

    The value of this property is a colon-delimited string of the format: «IPAddress»:«Port»:«HostName» - You may leave the host name blank. You can set the IP address to "*" to indicate that the site is bound to all IP addresses. A port number is required.



  • Hi Ben,

    Thanks for your response. I've tried the case you said, but still i am getting the same issue.
    Below is the script i am using:
    Case 1:
    IIS::Ensure-Site API
    (
    AppPool: ppPool,
    Path: C:\inetpub\wwwroot\API,
    Protocol: HTTP,
    Binding: 11.127.16.216:80,
    Exists: true
    );

    Case 2:
     IIS::Ensure-Site API
    (
        AppPool: ppPool,
        Path: C:\inetpub\wwwroot\API\,
        Protocol: HTTP,
        Binding: *:80,
        Exists: true
    );
    
    @Ben: could you please provide me any working script that i can check.
    
    Thanks,
    Srinivas


  • What version of the Windows extension are you using? If it's 5.6.3 or later (when multiple binding support was added), the syntax should be:

    IIS::Ensure-Site API
    (
        AppPool: ppPool,
        Path: C:\inetpub\wwwroot\API,
        Bindings: @(
            %(
                IPAddress: *, 
                Port: 80, 
                Protocol: http
            )
        )
    );


  • Hi Tod,

    We are using version 5.6.2 windows not the latest!!.
    Please help us, we are not moving anywhere with this issue.

    Thank,
    Srinivas



  • Please upgrade to the latest version of the Windows extension in that case.



  • Thanks all, it seems the problem with the extension. One thing I've observed is the extension is not working for 5.6.5. As we end up in upgrading the buildmaster to 5.6.11 then it started working.


Log in to reply
 

Inedo Website HomeSupport HomeCode of ConductForums GuideDocumentation