SQL1159 Initialization error with DB2 .NET Data Provider, reason code 2

后端 未结 4 1400
遇见更好的自我
遇见更好的自我 2021-02-20 01:09

I am trying to connect to DB2 from .NET 2.0 application in my development machine running windows 7 64 bit.

I am getting this error in open method. Could not find a sol

4条回答
  •  眼角桃花
    2021-02-20 02:01

    I had a 32 bit DB2 Client and I was accessing it from a Web Application hosted on IIS, using Application pool (with 'Enable 32-bit Application' set to false). In this case a 64 -bit client (db2app64.dll) is expected while db2app.dll will throw above error.

    Just FYI.. It is hard to debug this error in Visual studio as by default IIS express uses 32-bit application pool. To change it to 64-bit, one has to make changes in registry (set Use64BitIISExpress to 1) There is no inetmgr for IIS Express.

提交回复
热议问题