title: Connecting to SQL Local Database using ConfigurationManager ASP.NET/C#
body: <p>I've been trying to connect to my local database created in Visual Studio Professional using SQL Commands...</p>
  
  <p>I am trying to run my code but am faced with the following error complaining about my 'ConnectionString' (see this image)</p>
  
  <p>The error is saying that "NullReferendException was unhandled by user code. What am I doing wrong? </p>
  
  <p><img src="https://i.stack.imgur.com/nkx9N.png" alt="Error"></p>
  
  <p>I can't get this database connected to my form for the life of me.</p>
  
  <p>Here are my configuration settings found in web.config</p>
  
  <p><img src="https://i.stack.imgur.com/LiUSv.png" alt="web.config"></p>
  
  <p>Any help with getting my connection going with the local database would be greatly appreciated. I've been trying to tweek my connection for two days and still stuck at the issue with the .ConnectionString</p>
  
  <p>///////////////////////////////</p>
  
  <p>UPDATE - 10:55 8/2</p>
  
  <p>After switching my conn settings to: 
   SqlConnection conn = new SqlConnection(System.Configuration.ConfigurationManager.
      ConnectionStrings["ConnectionString"].ConnectionString);</p>
  
  <p>I am now faced with this error complaining about the Exception:</p>
  
  <p><img src="https://i.stack.imgur.com/7jDmx.png" alt="enter image description here"></p>