public Stream ReadIntoFileStream(string path)
{
try
{
var stream = _streamFactory.ConstructReadFileStream(path);
return stream;
}
catch (IOException ex)
{
if (ex.Message.IndexOf("it is being used by another process") >= 0)
{
throw new ApplicationException("The file you chose cannot be read because it is open in another application. Please close the file in the other application and try again.");
}
throw;
}
}