Solved

.NET and IBM.Data.DB2 Connection Problem

Posted on 2004-10-11
9
6,069 Views
Last Modified: 2012-05-05
I am creating an ASP.NET web app (vb) and trying to connect to a DB2 database.  When attempting to create a new connection object, I receive the following error.  

"An unhandled exception of type 'System.EntryPointNotFoundException' occurred in ibm.data.db2.dll  Additional information: Unable to find an entry point named SQLInitializeADONET in DLL db2app.dll."

The error occurrs on the line:     Dim myConn as new DB2Connection

For some reason, it won't let me create a new connection object.  I have re-installed the IBM Data Provider and re-referenced the IBM.Data.DB2.dll all with no change.

Any help is much appreciated!
0
Comment
Question by:djmarik
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
9 Comments
 
LVL 4

Expert Comment

by:bondtrader
ID: 12288920
Can you successfully connect outside of your application using the DB2 configuration assistant's "Test Connection" facility?  What exact version (fixpak level) of DB2 are you using?
0
 

Author Comment

by:djmarik
ID: 12289247
I am able to connect to the database using ODBC and a third-party client.  Version 8.1.3 FixPack 3  -- I've been searching for a higher fixpack, but that's the best I can find.

0
 
LVL 4

Expert Comment

by:bondtrader
ID: 12289317
Here's a link to the IBM DB2 Fixpak download area:

http://www-306.ibm.com/software/data/db2/udb/support/downloadv8.html

Fixpak 7a is the latest...
0
Quiz: What Do These Organizations Have In Common?

Hint: Their teams ended up taking quizzes, too.

 

Author Comment

by:djmarik
ID: 12290972
I just uninstalled my FixPack 3 and Installed FixPack 7a from the link you provided.  I chose the 'Application Developer Client'.  After running my application, I receive an error in the same place, but it is slightly different.  The new error reads: "An unhandled exception of type 'System.DllNotFoundException' occurred in ibm.data.db2.dll  Additional information: Unable to load DLL (db2app.dll)."

Any ideas??

--Thanks!
0
 
LVL 4

Expert Comment

by:bondtrader
ID: 12291195
It sounds as if your Web Server session may not be correctly configured for the DB2 environment.   Is your Web Server running under the same id that you used to test your DB2 ODBC connections?  You need to make sure your Web Server can load all of the required DB2 libararies etc..

Hope this helps.  
0
 

Author Comment

by:djmarik
ID: 12291303
I understand what you mean.  I don't think this is a problem because my webserver is my local machine.  To answer your question, yes, it is the same under the same id as the db2 odbc connection.

Besides referencing the Ibm.data.db2.dll  what else should I need.  That should contain the entire db2 library, correct (or know where to find the rest)?
0
 
LVL 4

Accepted Solution

by:
bondtrader earned 500 total points
ID: 12291399
0

Featured Post

Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

November 2009 Recently, a question came up in the DB2 forum regarding the date format in DB2 UDB for AS/400.  Apparently in UDB LUW (Linux/Unix/Windows), the date format is a system-wide setting, and is not controlled at the session level.  I'm n…
Recursive SQL in UDB/LUW (you can use 'recursive' and 'SQL' in the same sentence) A growing number of database queries lend themselves to recursive solutions.  It's not always easy to spot when recursion is called for, especially for people una…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question