Topic
  • 1 reply
  • Latest Post - ‏2012-09-18T15:06:36Z by SystemAdmin
RipalPatel
RipalPatel
1 Post

Pinned topic Not able to connect to db2 from web app but able to from console app

‏2012-09-17T13:57:29Z |
Hi,
I am using IBM.Data.db2.dll(version 9.5.3.2) to connect to DB2 from asp.net 3.5.
I am able to connect to db2 from Console application. but from Web application I am getting belopw error mesage
*ERROR - no error information available at IBM.Data.DB2.DB2ConnPool.Open(DB2Connection connection, String& szConnectionString, DB2ConnSettings& ppSettings, Object& ppConn)
at IBM.Data.DB2.DB2Connection.Open()*

I am using below connectionstring to connect to db2.
Server=myser:myPort;Database=myDb;UID=myUId;PWD=myPwd;

Same connection string and same code work fine for console application, but giving error for web application.
My OS is 32bit.
Updated on 2012-09-18T15:06:36Z at 2012-09-18T15:06:36Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    2826 Posts

    Re: Not able to connect to db2 from web app but able to from console app

    ‏2012-09-18T15:06:36Z  
    Hi Ripal Patel,

    The worker process will run under different user id. Please add those userids to DB2USERS or DB2ADMNS group.

    Malar.