title: Configuration System Failed to Initialize
body: <p>I'm new to Visual Studio. I'm currently creating a Login form.</p>
  
  <p>I have this code.</p>
  
  <pre><code>string connectionString = ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString;
  try
  {
      using (OdbcConnection connect = new OdbcConnection(connectionString))
      {
          connect.Open();
          OdbcCommand cmd = new OdbcCommand("SELECT username, password FROM receptionist", connect);
          OdbcDataReader reader = cmd.ExecuteReader();
  
          if (username_login.Text == username &amp;&amp; password_login.Text == password)
          {
              this.Hide();
              MessageBox.Show("Invalid User", "Login Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
              this.Close();
          }
          else 
              MessageBox.Show("Invalid User", "Login Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
          connect.Close();
      }
  }
  catch (OdbcException ex)
  {
      MessageBox.Show(ex.Message, "error", MessageBoxButtons.OK, MessageBoxIcon.Error);
  }
  </code></pre>
  
  <p>But whenever I try to type in the username and password there is an error called <strong>Configuration system failed to initialize</strong>. I'm just wondering what kind of problem is this and how could I solve this?</p>
  
  <p>Please help.</p>