Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Connecting to Informix using Client SDK 2.81 TC3

Status
Not open for further replies.

kcavner

IS-IT--Management
Joined
May 18, 2004
Messages
1
Location
US
I recently got thrown into the Informix world. I am developing a web service in .NET to connect to an Informix server to run stored procedures. Here is my problem.

When I attempt to create a connection object using IBM.Data.Informix dll (this DLL by the way is part of the Client SDK 2.81 TC3 .NET Driver from Informix) I get the following error.

An unhandled exception of type 'System.InvalidOperationException' occurred in ibm.data.informix.dll

Additional information: ERROR - unable to allocate an environment handle.

What is causing this and how can it be corrected?
This is happening after I build the connection string but before I attempt to connect to the database as I am creating the IfxConnection object.
 
InvalidOperationException is thrown in cases when the failure to invoke a method is caused by reasons other than invalid arguments and when a method call is invalid for the object's current state.
For example, you try to call a method on the Connection object but the state of the object is Closed.
Or, a resource set is closed and a method call is made after.
-obislavu-
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top