Stream.CopyTo Method (Stream)
Reads the bytes from the current stream and writes them to another stream.
Assemblies: mscorlib (in mscorlib.dll)
System.IO (in System.IO.dll)
destination is a null reference (Nothing in Visual Basic).
The current stream does not support reading.
destination does not support writing.
Either the current stream or destination were closed before the CopyTo method was called.
An I/O error occurred.