title: .dll.config file not found when running in IIS
body: <p>I am calling a webservice but the .dll.config file with the webservice bindings is not found.
  Let's say the code for calling the webservice is in a DLL named <em>webservicecall.dll</em> and the generated config file is <em>webservicecall.dll.config</em>.
  Both files are located in IIS (6.0), <strong>DefaultWebSite\testserver\bin</strong></p>
  
  <p>When calling the command to use the webservice, I get an error indicating that the config file was not found.</p>
  
  <p>To test the WebService call, I created a console application <em>TestWebServiceAccess.exe</em> and used the same config file (just renamed it to <em>TestWebServiceAccess.exe.config</em>). This works fine.</p>
  
  <p>Even the unit tests in "webservicecall.dll" use the .dll.config file correctly, just when the whole thing is hosted in IIS it doesn't work.</p>
  
  <p>This is the error: </p>
  
  <blockquote>
    <p>Could not find default endpoint element that references contract 'WEBSERVICE1' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this contract could be found in the client element.</p>
  </blockquote>
  
  <p>Are there any configuration options in IIS to get the thing working?</p>