This chapter describes error messages that occur while using the ADO.NET.
System.BadImageFormatException
Cause
It can occur when a 64bit dll is used in a 32bit program. Visual Studio C# can optionally build 32bit and 64bit. If odbccli_sl.dll is used for 64bit while it is set to 32bit compilation mode, an error occurs while loading the wrong DDL.
Error Message
The first exception of type'System.BadImageFormatException' occurred in Altibase.Data.AltibaseClient.dll. The first exception of type'System.BadImageFormatException' occurred in Altibase.Data.AltibaseClient.dll. An unhandled exception of type'System.BadImageFormatException' was thrown in Altibase.Data.AltibaseClient.dll.
Resolution
Download and use Altivase ADO.NET DLL suitable for the compilation bit-type of Visual Studio.
System.DllNotFoundException
Cause
Error Message
An unhandled exception of type'System.DllNotFoundException' occurred in Altibase.Data.AltibaseClient.dll. Additional Information: The DLL'odbccli_sl.dll' could not be loaded. The specified module could not be found. (Exception occurred HRESULT: 0x8007007E)
Resolution