Skip to main content

The exception that is thrown when an attempt to access a file that does not exist on disk fails.

The exception that is thrown when an attempt to access a file that does not exist on disk fails.

FileNotFoundException uses the HRESULT COR_E_FILENOTFOUND which has the value 0x80070002. If your code does not have PathDiscovery permission, the error message for this exception may only contain file or directory names instead of fully qualified paths