Click here to Skip to main content
15,886,873 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am trying to access DB2 database through ASP.NET code, but facing below issue,

Quote:
SQL1159 Initialization error with DB2 .NET Data Provider, reason code 2, tokens C:\Program Files\IBM\SQLLIB\bin\db2app.dll,


DB2 is installed in the following location
Quote:
C:\Program Files (x86)\IBM\SQLLIB
.

So now the issue is my application is not picking up from Program Files (x86) folder its always tries to pick from Program Files folder. How can I overcome this issue, please help me out.

Thanks in advance.
Posted

You need to make sure your PATH is pointing to the correct folder, OR you just simply copy the db2app.dll to the bin folder of your application.

Good luck!
 
Share this answer
 
Comments
gettgotcha 3-Jan-14 11:27am    
Thanks for the response. Copying the dll to my application bin folder did not resolved the issue still seeing the same error, is there any other way to resolve it?
E.F. Nijboer 3-Jan-14 13:18pm    
There is the debug\bin and release\bin ...

Also check these link for more:
http://msdn.microsoft.com/en-us/library/ee817675.aspx
gettgotcha 3-Jan-14 14:37pm    
Yeah even copying the dlls did not work so I uninstall DB2 and installed back so that this time its pointing to correct folder Program Files rather than x86 folder and my application is running without issues. Thank you for the response.
E.F. Nijboer 3-Jan-14 16:36pm    
Great that the problem is fixed!
Uninstall and install DB2 make sure it gets installed in Program Files folder rather than Program Files(x86) folder and application would be running successfully without any issues.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900