WebAdministrationDsc
WebAdministrationDsc copied to clipboard
Convert property 'Port' value from type 'STRING' to type 'UINT16' failed
When i try to execute Sample_EndToEndxWebAdministration, i receive this error.
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!
Hello @haidouks - I'm not seeing that sample in our repo, could you provide the data so we could investigate further?
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.
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.
I am using 1.17.0.0 version
Also, for the all int value parameters, i have the same issue. Thank you!
@haidouks Can you provide on what OS and PowerShell version you are running this?
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.
@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 Thanks for your response. I label this as a bug end help wanted so anyone in the community can run witg it.
Thank you @johlju