Skip to end of metadata
Go to start of metadata

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

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

It occurs when odbccli_sl.dll and the Altibase library cannot be found.

Error Message

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

Copy odbccli_sl.dll to the location of the program executable file or add the path of odbccli_sl.dll to the PATH environment variable.

 

  • No labels