![Invoke Power Shell: Unable to cast object to type 'System.IO.FileInfo' to type 'System.String' - Studio - UiPath Community Forum Invoke Power Shell: Unable to cast object to type 'System.IO.FileInfo' to type 'System.String' - Studio - UiPath Community Forum](https://global.discourse-cdn.com/uipath/original/4X/9/a/3/9a3c983c962bbaca85a59030656597954d169344.png)
Invoke Power Shell: Unable to cast object to type 'System.IO.FileInfo' to type 'System.String' - Studio - UiPath Community Forum
System.IO.DirectoryInfo and System.IO.FileInfo instances output by Get-Item / Get-ChildItem bind to -Path rather than -LiteralPath and sometimes by filename only · Issue #3772 · PowerShell/PowerShell · GitHub
![Getting error "Could not load type 'System.IO.FileInfo' from assembly ' System.Runtime, Version=5.0.0.0" · Issue #256 · oleg-shilo/cs-script · GitHub Getting error "Could not load type 'System.IO.FileInfo' from assembly ' System.Runtime, Version=5.0.0.0" · Issue #256 · oleg-shilo/cs-script · GitHub](https://user-images.githubusercontent.com/16729806/134770990-187a8e1c-1580-4e3c-9f01-dfa0536b56e3.png)
Getting error "Could not load type 'System.IO.FileInfo' from assembly ' System.Runtime, Version=5.0.0.0" · Issue #256 · oleg-shilo/cs-script · GitHub
![c# - Unable to cast object of type 'System.IO.FileSystemInfo[]' to type ' System.Collections.Generic.IEnumerable`1[System.IO.DirectoryInfo] - Stack Overflow c# - Unable to cast object of type 'System.IO.FileSystemInfo[]' to type ' System.Collections.Generic.IEnumerable`1[System.IO.DirectoryInfo] - Stack Overflow](https://i.stack.imgur.com/WR5HU.png)