Getting the following exception while calling file.GetInputStream() 