WebAdministrationDsc icon indicating copy to clipboard operation
WebAdministrationDsc copied to clipboard

Convert property 'Port' value from type 'STRING' to type 'UINT16' failed

Open haidouks opened this issue 7 years ago • 9 comments

When i try to execute Sample_EndToEndxWebAdministration, i receive this error.

image My powershell info is:

Name : Windows PowerShell ISE Host Version : 5.1.14393.206 InstanceId : e92ca0fa-a9c0-46ec-a533-188e421a0d65 UI : System.Management.Automation.Internal.Host.InternalHostUserInterface CurrentCulture : tr-TR CurrentUICulture : tr-TR PrivateData : Microsoft.PowerShell.Host.ISE.ISEOptions DebuggerEnabled : True IsRunspacePushed : False Runspace : System.Management.Automation.Runspaces.LocalRunspace

Thank you!

haidouks avatar Nov 10 '16 16:11 haidouks

Hello @haidouks - I'm not seeing that sample in our repo, could you provide the data so we could investigate further?

tysonjhayes avatar Dec 05 '16 18:12 tysonjhayes

Hello, as we haven't heard from you and can't take further action I'm resolving this issue. Please feel free to reopen it.

tysonjhayes avatar Jan 25 '17 23:01 tysonjhayes

Sorry for late reply,

My script is as below.

xWebSite "CreateWebSite__$webSiteName"
        {
            Name   = $webSiteName
            Ensure = "Present"
            ApplicationPool = $appPoolName
            BindingInfo = MSFT_xWebBindingInformation
                    {
                        IPAddress = '*'
                        HostName = $webSiteName
                        Protocol = 'HTTP'
                        Port = 81
                    }

            PhysicalPath = $OctopusParameters['Octopus.Action[Deploy].Output.Package.InstallationDirectoryPath']
            State = "Started"
            DependsOn = @("[xWebAppPool]CreateAppPool__$appPoolName","[File]CreateWebSitePath__$webSiteName")
        }

Still i am getting same error. image

I am using 1.17.0.0 version image

haidouks avatar Feb 13 '17 07:02 haidouks

Also, for the all int value parameters, i have the same issue. Thank you!

haidouks avatar Feb 13 '17 07:02 haidouks

@haidouks Can you provide on what OS and PowerShell version you are running this?

johlju avatar Apr 26 '18 12:04 johlju

This issue has been automatically marked as stale because it has not had activity from the community in the last 30 days. It will be closed if no further activity occurs within 10 days. If the issue is labelled with any of the work labels (e.g bug, enhancement, documentation, or tests) then the issue will not auto-close.

stale[bot] avatar Jun 18 '18 23:06 stale[bot]

@johlju It was Windows Server 2012 R2. Issue is still there but I am not using this code any more. You can close this issue.

haidouks avatar Jun 19 '18 07:06 haidouks

@haidouks Thanks for your response. I label this as a bug end help wanted so anyone in the community can run witg it.

johlju avatar Jun 19 '18 08:06 johlju

Thank you @johlju

haidouks avatar Jun 19 '18 08:06 haidouks