I am trying to code in .net 2.0 when I'm used to .net 3.0
I have linked the LinqBridge.dll but I'm still having troubles with establishing a link between my database and tha aspx code
I have the error: System.NullReferenceExcept
ion: Object reference not set to an instance of an object.
conn = new SqlConnection(Configuratio
Should I still have the namespace using System.Linq; or something else now that i have the LinqBridge.dll?
public class DBConnect
public static SqlConnection conn = null;
public static void OpenConnection()
if (conn == null)
conn = new SqlConnection(ConfigurationManager.ConnectionStrings["std"].ConnectionString);
public static void CloseConnection()
if (conn != null)