Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

FileLoadException Class

The exception that is thrown when a managed assembly is found but cannot be loaded.

For a list of all members of this type, see FileLoadException Members.

System.Object
   System.Exception
      System.SystemException
         System.IO.IOException
            System.IO.FileLoadException

[Visual Basic]
<Serializable>
Public Class FileLoadException
   Inherits IOException
[C#]
[Serializable]
public class FileLoadException : IOException
[C++]
[Serializable]
public __gc class FileLoadException : public IOException
[JScript]
public
   Serializable
class FileLoadException extends IOException

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Remarks

Represents the error that occurs when a Assembly file is found but cannot be loaded.

The FileNotFoundException exception is thrown when the file fails to load because it cannot be located. If the file is located, but cannot be loaded due to insufficient permissions, a SecurityException is thrown.

FileLoadException has the default HRESULT of COR_E_FILELOAD, which has the value 0x80131621, but this is not the only possible HRESULT.

Requirements

Namespace: System.IO

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: Mscorlib (in Mscorlib.dll)

See Also

FileLoadException Members | System.IO Namespace | Exception | Handling and Throwing Exceptions | Working with I/O | Reading Text from a File | Writing Text to a File

Show:
© 2014 Microsoft