title: How to read Web.Config file while Unit Test Case Debugging?
body: <p>I am trying to fetch data(URL) from my configuration file </p>
  
  <p>i.e : </p>
  
  <pre><code>&lt;AppSettings&gt;
  &lt;add key="configurationUrl" value="http://xx.xx.xx.xx:XXXX/configuration service/configurations"/&gt;
  </code></pre>
  
  <p></p>
  
  <p>using the following code </p>
  
  <pre><code> reqClient.BaseAddress = System.Configuration.ConfigurationManager.AppSettings["configurationUrl"].ToString();
  </code></pre>
  
  <p>Its all working good when I am trying to debug it, but the major problem comes when I debug a unit test case calling the same code above, instead of Showing "configurationUrl" in the AllKeys of APPSettings its showing "TestProjectRetargetTo35Allowed". I have also added the web.config file in the testcase project.</p>
  
  <p>Any assistance will be appreciated Thank You.</p>