Troubleshooting
Problem
C# (or OLE DB, or ODBC) application is failing with either 'Specified driver could not be loaded due to system error 5' or 'Specified driver could not be loaded due to system error 1114'
Symptom
C# (or OLE DB, or ODBC) application is failing with either
'Specified driver could not be loaded due to system error 5'
or
'Specified driver could not be loaded due to system error 1114'
Cause
'System error 5' is a Windows permission issue, while 'System error 1114' is a DLL initialization error. In both cases, referring to db2cli.dll and db2odbc.dll. Either error means that the ID that the application is running under does not have
- Read & Execute
- List Folder Contents
- Read
Diagnosing The Problem
C# (or OLE DB, or ODBC) application is failing with either
'Specified driver could not be loaded due to system error 5'
or
'Specified driver could not be loaded due to system error 1114'
This problem can also arise with the Microsoft Internet Information Server (IIS).
Resolving The Problem
Grant the application UserID
- Read & Execute
- List Folder Contents
- Read
For example, if DB2 is installed to
- C:\Program Files\IBM\SQLLIB
- C:\
- C:\Program Files
- C:\Program Files\IBM
- C:\Program Files\IBM\SQLLIB
If Microsoft Internet Information Service (IIS) is the application, then the UserIDs include
- IUS*
- ASP*
- IWAM*
Was this topic helpful?
Document Information
Modified date:
23 June 2018
UID
swg21403672