System.NullReference on connection.Open for 5.0.2?
Posted by: Leonardo Carbajal
Date: December 14, 2006 01:27PM

Greetings,

I've been using the .NET connector without (too many) issues. Up until recently i'd been using 1.0.7 and then lately 1.0.8.

Recently, however, I changed the DLL version to 5.0.2 and all of a sudden my program throws NullReference exceptions when attempting to open up a connection thusly:

if(dbCon.State.ToString()== "Closed")
{
dbCon.Open();
}
dbReader = command.ExecuteReader();

It doesn't actually get to the dbReader part, but I threw it in for completeness.

Now if dbCon was null or not set, wouldn't the Exception reference the line with the If statement, rather than the line with the Open() method? I am really, really confused. If I go in and switch the DLL version back to 1.0.8 then everything runs beautifully.

What am I missing? Are Connection strings different?
"Server=localhost;database=monomud;user id=xxx;Password=xxx;pooling=true";
Is what i'm using.

---
V

Options: ReplyQuote


Subject
Written By
Posted
System.NullReference on connection.Open for 5.0.2?
December 14, 2006 01:27PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.