Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    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

    Scheduled Pinned Locked Moved Support
    buildmaster
    7 Posts 2 Posters 7 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ? This user is from outside of this forum
      Guest
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • benB Offline
        ben inedo-engineer
        last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • ? This user is from outside of this forum
          Guest
          last edited by

          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
          
          1 Reply Last reply Reply Quote 0
          • ? This user is from outside of this forum
            Guest
            last edited by

            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
                    )
                )
            );
            
            1 Reply Last reply Reply Quote 0
            • ? This user is from outside of this forum
              Guest
              last edited by

              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

              1 Reply Last reply Reply Quote 0
              • ? This user is from outside of this forum
                Guest
                last edited by

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

                1 Reply Last reply Reply Quote 0
                • ? This user is from outside of this forum
                  Guest
                  last edited by

                  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.

                  1 Reply Last reply Reply Quote 0

                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                  With your input, this post could be even better 💗

                  Register Login
                  • 1 / 1
                  • First post
                    Last post
                  Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation