title: How to resolve reference to applicationSettings when web.config not available
body: <p>I am trying to take the code in an .ASMX web service and change it into a class library project. The web service project has a web.config file with:</p>
  
  <pre><code>&lt;applicationSettings&gt;
      &lt;myService.Properties.Settings&gt;
          &lt;setting name="DownloadChunkSize" serializeAs="String"&gt;
              &lt;value&gt;100000&lt;/value&gt;
          &lt;/setting&gt;
  </code></pre>
  
  <p>..and the code in the FileService.asmx.cs file uses this to retrieve the value: </p>
  
  <pre><code>int chunkSize = (int)Properties.Settings.Default.DownloadChunkSize;
  </code></pre>
  
  <p>When I try to re-architect this code to eliminate the .asmx web service, I get a compile time error in my class library project because there is no longer a web.config available. Let me try to explain a bit more about what I've done so far (and why): </p>
  
  <p>The motivation for this is to simplify my projects. That is, I have a Vstudio solution with an .asmx project that works. It has a few methods and encapsulates the communication with another .asmx web service supplied by a vendor.</p>
  
  <p>The new design I am attempting is as follows:</p>
  
  <p>Project 1 is a class library project called ProxyASMX with a web reference to the vendor web service. I've provided no code here; it simply has a small app.config pointing at the vendor web service.</p>
  
  <p>Project 2 is a class library project with a reference to the ProxyASMX.dll. The code in this FileService.cs file is the same as my original web service but the [webmethod] attributes have been removed. This is the project I'm having trouble compiling.</p>
  
  <p>Project 3 is a web application project with 2 HTTPHandlers - Upload.ashx and Download.ashx. This project will have a reference to the Project 2 class library. I tried replacing the small default web.config content with the more comprehensive web.config content from the original solution but when that did not work I thought I better consult the experts about this venture. </p>
  
  <p>I hope the above sketch is clear. I THINK this should be very do-able but now I am not so sure. </p>