Women in Technology

Hear us Roar

  Transparent Database Access with ADO.NET
Subject:   runtime error
Date:   2002-12-20 17:53:52
From:   anonymous2
this error refers to the static IDbDataAdapter DataAdapter(string dbType, string query) function

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

Line 100:
Line 101: // Create a Command Object
Line 102: IDbCommand cmd = conn.CreateCommand();

Full Threads Oldest First

Showing messages 1 through 3 of 3.

  • runtime error
    2002-12-22 18:14:47  neh123us@yahoo.com [View]

    Most likely this is caused by the GetConnection method not finding the assembly referenced in the config file. This is probably caused by not referencing the assembly, or possibly the assembly name is misspelled.

    Verify that the assembly is in the references collection of the project. Let me know if you continue to have problems.

    • runtime error
      2002-12-23 13:12:17  anonymous2 [View]

      Ok. It's working now. Thanks. The assembly name was misspelled. And congratulations for the script. I've seen some aproaches of this kind but yours is the simplest one.
      • runtime error
        2003-06-08 07:28:32  anonymous2 [View]