An attempt was made to apply an operation to an inappropriate device, such as writing to a nonexistent device.