title: Connection String in app.config of a dll
body: <p>I created a C# dll that uses connection string from <em>app.config</em> file to connect to database.</p>
  
  <p>I use it in a web application (Visual Studio 2013, Windows 7) that also connects to a database and has its own connection string in <em>web.config</em> file.
  However, when web app uses dll, the dll cannot find connection string that it needs from <em>app.config</em>.</p>
  
  <p>I realized that dll was looking for the connection string in <em>web.config</em>. For now, I added that connection string to <em>web.config</em> and it is working fine. </p>
  
  <p><strong>My question is:</strong> </p>
  
  <p>Is it the correct way of doing it? Or, there is a way for the dll to find its <em>app.config</em> and load connection string from there?</p>