Mahesh Gore

Mahesh Gore

  • NA
  • 1
  • 873

object reference not set to an instance of an object. in c#

Jul 24 2015 6:16 AM

next line is in connection.cs file= 
public OleDbDataReader dr;
 
 
 
and this is in form.cs file 

oleDbCommand.Connection = connection.Conn;

connection.dr = oleDbCommand.ExecuteReader();

 
i got exception = 
object reference not set to an instance of an object. in c#

Answers (2)