A StreamWriter was not closed and all buffered data within that StreamWriter was not flushed to the underlying stream. (This ...

A StreamWriter was not closed and all buffered data within that StreamWriter was not flushed to the underlying stream.  (This was detected when the StreamWriter was finalized with data in its buffer.)  A portion of the data was lost.  Consider one of calling Close(), Flush(), setting the StreamWriter's AutoFlush property to true, or allocating the StreamWriter with a "using" statement.  Stream type: {0}
File name: {1}
Allocated from:
 {2}