Troubleshooting Exceptions: System.IO.FileNotFoundException
Aexception is thrown when an attempt is made to access a file or directory that does not exist on disk.
- Verify that the file exists in the specified location.
If the file does not exist, this exception is thrown. For more information, see.
- When using relative paths, make sure the current directory is correct.
If you are assuming the current directory incorrectly, relative paths will be incorrect as well.