Licensing Fails

Licensing Fails

Postby larrygculver » Wed 31 May 2006 22:02

When I execute the following code in the VS2003 SE Emulator:
this.dbConn.ConnectionString = "user id=crafter;password=crafter;data source=rcl_test;";
this.dbCmnd.CommandText = "Select * from location_rtpro";
this.dbCmnd.Connection = this.dbConn;

OracleDataAdapter myAdapter = new OracleDataAdapter(dbCmnd);
OracleCommandBuilder myCmnd = new OracleCommandBuilder(myAdapter);

DataSet myDS = new DataSet();
Cursor.Current = Cursors.WaitCursor;
myAdapter.Fill(myDS, "Stores"); <--- Error occures on this line
dataGrid1.DataSource = myDS.Tables[0];

I get this error message:

CoreLab.Oracle.OracleException was unhandled
Message="License not found. Please view \"Licensing\" topic in OraDirect .NET documentation for details or contact Core Lab technical support."
at CoreLab.Oracle.OracleConnection.Open()
at System.Data.Common.DbDataAdapter.QuietOpen()
at System.Data.Common.DbDataAdapter.FillInternal()
at System.Data.Common.DbDataAdapter.Fill()
at System.Data.Common.DbDataAdapter.Fill()
at StarRFGun.StarRFGunFrm..ctor()
at StarRFGun.Program.Main()
Posts: 5
Joined: Wed 31 May 2006 21:57
Location: Irving, TX

Postby Alexey » Thu 01 Jun 2006 08:03

Try to call Open() method of OracleConnection before Fill() method.
Posts: 2756
Joined: Mon 13 Mar 2006 07:43

Return to dotConnect for Oracle