DAAB NullReferenceException Error RRS feed

  • Question

  • User-1839934928 posted

    I'm using the Entreprise Library Data Access Application Block v3.1.0.0 and I'm running into an issue. I created a connection to the database in the contructor:

    db = DatabaseFactory.CreateDatabase("Development");
    In Method Call:
    Dataset ds = new Dataset();
    db.ExecuteDataSet("sproc name",
     SearchParameters[0], SearchParameters[1], SearchParameters[2]);

    I keep on getting a error when I run this:

    Object not set to an instance of an object.

    This is thrown from a NullReferenceException. However, when I run the query in SQL, I get data back. Can anyone help me figure out what I'm doing wrong here. Also, I am passing null values in my parameters for a few of the inputs.

    Friday, February 10, 2012 9:02 AM

All replies

  • User-37275327 posted

    In which line error thrown?

    Tuesday, February 14, 2012 1:03 AM