I'm getting this exception
System.IO.IOException: The operation completed successfully.
in the following chunk of code. This code runs in a windows service.
foreach (var error in _currentPowerShell.Streams.Error)
{
if (!string.IsNullOrEmpty(error.FullyQualifiedErrorId))
{
if (!(error.CategoryInfo.Activity == "Get-Alias"))
throw error.Exception;
}
}
It doesn't make sense at all since I'm not doing any IO operation!