Object Reference Not Set to Instance of an Object
<p>Is my machine playing me today?</p>

<p>When I run the <code>TestConnectionString()</code> method of this object I get the error at the connection string setting.</p>

<pre><code>public class CustomerDAL
{
   string connectionString = ConfigurationManager.ConnectionStrings["myConnection"].Name;

    public CustomerDAL()
    {

    }

    public string TestConnection()
    {
        System.Data.SqlClient.SqlConnection conn =  new System.Data.SqlClient.SqlConnection(connectionString);
        conn.Open();

        if (conn.State == System.Data.ConnectionState.Open)
        {
            return "Open";
        }
        else
        {
            return "Close";
        }
     }
}
</code></pre>
