title: DllImport from class library or web service project
body: <p>I created a console application to import "C" Dll using DllImport
  The "C" Dll has reference to other Dll's and Config files in same folder.</p>
  
  <p>When i put all the files in bin directory of Console applicaiton it works perfect.</p>
  
  <p>But when i create a Web application to consume the same it does not work. (The dll reference are fine when i set the path, but it seems the config files are not getting loaded)</p>
  
  <p>I have tried below but did not help.</p>
  
  <ol>
  <li>Copy the DLL's and config files to System32.</li>
  <li>Give access permission to IIS.</li>
  <li>Disable shadow copy.</li>
  </ol>
  
  <p>None seem to work, Any other suggestions?</p>