title: The name 'xxx' does not exist in the current context
body: <p>this is my common app.config</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;configuration&gt;
    &lt;connectionStrings&gt;
      &lt;add name="BO"
          connectionString="Data Source=MyServer;Initial Catalog=BO;User ID=WebUser;Password=xxxx"
          providerName="System.Data.SqlClient" /&gt;
    &lt;/connectionStrings&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>And I'm working on a library, class.cs. Here's the part of the code where I get the error.</p>
  
  <pre><code> public static SqlConnection getNewConnection()
          {
              string conection = ConfigurationManager.ConnectionStrings["BO"].ConnectionString.ToString();
              conn = new SqlConnection(conection);
              return conn;
          }
  </code></pre>
  
  <p>Error   1   The name 'conn' does not exist in the current context   </p>
  
  <p>Any idea? I have not copied any other file that's being referenced to the same file. (some error I've read is common when it comes to "does not exist in the current context")</p>