Unable to cast object of type 'System.Management.Automation.Language.ConstantExpressionAst' to type 'System.Management.Automation.Language.StringConstantExpressionAst'

Issue #9 resolved
Adam Driscoll created an issue

Hello, using tools version 3.0.399. When I attempt to debug my script by invoking 'Execute as Script with Parameters' I receive the following exception:

"Unable to cast object of type 'System.Management.Automation.Language.ConstantExpressionAst' to type 'System.Management.Automation.Language.StringConstantExpressionAst'"

The offending parameter appears to be :

      [Parameter(Mandatory=$true)]
      **[ValidateSet( 128, 512, 1023 )]**
      [int]$dataDiskSizeGB,

Comments (1)

  1. Log in to comment