Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Troubleshooting Exceptions: System.IO.IOException
Collapse the table of content
Expand the table of content

Troubleshooting Exceptions: System.IO.IOException

A IOException is thrown when an I/O error, such as failing to read from or write to a file, occurs.

Make sure the file and directory exist.

Verify that the directory you are trying to read from/write to exists. Verify that the file you are trying to read from exists.

Remarks

IOException is the base class for exceptions thrown while accessing information using streams, files and directories.

The Base Class Library includes the following types, each of which is a derived class of IOException:

Community Additions

ADD
Show:
© 2015 Microsoft