PSConsoleReadLine.ReadLine - ArgumentOutOfRangeException #725
Labels
OutOfRange
Issues relating to System.ArgumentOutOfRangeException
Resolution-Duplicate
There's another issue on the tracker that's pretty much the same thing.
If I try to read the encryption-state of my Azure-VM; I get the error that the key does not exists.
To work-a-round this I want to try-catch that error and start the encryption process.
However I get the error 'something went wrong'
With kind regards,
Sebastian
Try
Last 200 Keys:
Escape 1 3 ; 1 R
Exception:
System.ArgumentOutOfRangeException: The value must be greater than or equal to zero and less than the console's buffer size in that dimension.
Parameter name: top
Actual value was -3.
at System.Console.SetCursorPosition(Int32 left, Int32 top)
at Microsoft.PowerShell.PSConsoleReadLine.ReallyRender(RenderData renderData, String defaultColor)
at Microsoft.PowerShell.PSConsoleReadLine.ForceRender()
at Microsoft.PowerShell.PSConsoleReadLine.Insert(Char c)
at Microsoft.PowerShell.PSConsoleReadLine.SelfInsert(Nullable
1 key, Object arg) at Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary
2 dispatchTable, Boolean ignoreIfNoAction, Object arg)at Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
at Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)
The text was updated successfully, but these errors were encountered: