473,386 Members | 1,773 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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

Hi...I am using DB2 .net provider to connect to mainframe DB from .Net.
Earlier when compiling the project was facing an error saying, there was a conflict with the IBM.Data.db2.dll version (9.7.3.2). So then copied a different version (9.1.6.1) dll to C:\Program Files\IBM\SQLLIB\BIN location. Now the project is getting compiled but getting an initialization error with DB2.Net data provider


Please anyone suggest me what i need to do ?
Below is the error description
Thanks

SQL1159 Initialization error with DB2 .NET Data Provider, reason code 2, tokens C:\Billing Group\NetSolutions\DirectBill\DirectBill_UI\bin\db 2app.dll,

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: SQL1159 Initialization error with DB2 .NET Data Provider, reason code 2, tokens C:\Billing Group\NetSolutions\DirectBill\DirectBill_UI\bin\db 2app.dll,

Source Error:

Line 63: public class requestData
Line 64: {
Line 65: private DB2Connection cnDB2 = new DB2Connection();
Line 66: private DB2Command cdDB2 = new DB2Command();
Line 67: private DB2DataAdapter daDB2 = new DB2DataAdapter();


Source File: c:\billing group\netsolutions\directbill\directbill_da\direct bill.cs Line: 65

Stack Trace:

[InvalidOperationException: SQL1159 Initialization error with DB2 .NET Data Provider, reason code 2, tokens C:\Billing Group\NetSolutions\DirectBill\DirectBill_UI\bin\db 2app.dll, ]
IBM.Data.DB2.f.a()
IBM.Data.DB2.DB2ConnPool.e()
IBM.Data.DB2.DB2ConnPool..ctor()
IBM.Data.DB2.DB2Connection..cctor()

[TypeInitializationException: The type initializer for "IBM.Data.DB2.DB2Connection" threw an exception.]
IBM.Data.DB2.DB2Connection..ctor() +0
DirectBill_DA.requestData..ctor() in c:\billing group\netsolutions\directbill\directbill_da\direct bill.cs:65
DirectBill_UI.inquiry.Page_Load(Object sender, EventArgs e) in c:\billing group\netsolutions\directbill\directbill_ui\inquir y.aspx.cs:41
System.Web.UI.Control.OnLoad(EventArgs e)
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Page.ProcessRequestMain()


------------------------------------------------------ Version Information: Microsoft .NET Framework Version:1.1.4322.2470; ASP.NET Version:1.1.4322.2470
Aug 5 '11 #1
0 2608

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Vincento Harris | last post by:
Anyone knows what would cause this?When Enterprise Manager is used to open a table Runtime error data provider or other service provided an efail status
1
by: Stefano Tesini | last post by:
Hi all, when i drop a table, i take his error : SQL0902C System error (REASON CODE = "122"). Why ? Ver UDB Server nt 7.1.0 Ver UDB Cli 7.1.0 Win 98 or XP the error is the same.
0
by: raccsdl | last post by:
Hi Christopher Weaver ! Can you give me a sample code connect to interbase by VS C#. I try it but have error like this "Borland Data Provider Initialization failed." I don't know why. I'm look...
0
by: acwomble | last post by:
I am working with a database on another system via a ssh tunnel using plink. We have setup an alias the local system for the remote database. I am able to connect and work from within Visual...
4
by: jason.awlt | last post by:
Greetings, I recently being bugged by the following error on my DB2. SQL0902C SQLSTATE = 58005 Reason Code = 14 This error comes out everytime i tried to insert some record to a table...
2
by: Andrew | last post by:
Win2k3 IIS6 ..NET 2.0 In my ASP.NET 2.0 app I create an open an SQL connection in the page's constructor and call objSQL.Dispose() in the destructor. The SQLConnection object is a class...
9
by: shorti | last post by:
db2 V8.2 I have been looking for a good way to log the 'reason code' when we hit an sqlcode that uses them. From what I can tell the reason code is stored in sqlca.sqlerrmc. But, there seems...
8
by: Challenge | last post by:
Hi, I got error, SQL1768N Unable to start HADR. Reason code = "7", when I tried to start hadr primary database. Here are the hadr configuration of my primary db: HADR database role ...
2
by: Bob | last post by:
I'm running sql server ver 7.0 SP4. I have an access project (.adp) that runs a view which is nothing more than a select statement. Access locks up solid when I try to run this query - with NO...
1
by: JulieV | last post by:
I am trying to debug a VBA program in Access and have no idea what I am doing, but when I execute the code I get the following error: "Data provider could not be initialized" The debugger sends...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.