title: ASP.net C# requires IIS restart when new DLL copied to BIN directory
body: <p>We are receiving a problem whereby every time we copy a dll to the bin directory, our main domain on the website grinds to a halt and the only way to bring it back up is by restarting the "WWW Publishing Service".</p>
  
  <p>We run a website which contains a number of IIS applications running off a single server where each of these applications are configured to run off different application pools.</p>
  
  <p>We have a large codebase which contains over 280 aspx pages across the site. Our main domain contains about 100 aspx pages whilst the subdomains contain 15 or 20 each. </p>
  
  <p>When we do a build we are currently generating a bunch of dlls which we manually copy into the production servers bin directory. As soon as we do this the IIS obviously kicks off a recycle compiling each of the aspx pages and code behinds. At this point, the site essentially grinds to a halt (sometimes it needs to be restarted - by restarting the web publishing service - to wake it up again). </p>
  
  <p>The curious thing is, this only happens when we deploy to the main domain IIS application, i.e. the www. If we deploy a bin file to the sub domain in the same way, it almost instantly works. </p>
  
  <p>Even if I do an iisreset.exe, this does not seem to resolve the problem.</p>
  
  <p><strong>Few Questions:</strong></p>
  
  <ol>
  <li>Is there anyway of speeding up the current process so that we do not have to restart the server? </li>
  <li>Would there be any obvious code changes or updates which would be causing the need for a restart of the service (sometimes we run an iisreset but this doesnt seem to bring it back to life)?</li>
  </ol>
  
  <p>Some specs: </p>
  
  <ul>
  <li>Code is written in : <strong>C#</strong></li>
  <li>.net framework : <strong>2.0</strong></li>
  <li>Server : <strong>Windows Web Server 2008</strong></li>
  <li>iis version : <strong>IIS7</strong></li>
  <li>Database : <strong>MSSQL 2008 Standard</strong></li>
  </ul>
  
  <p>Any assistance would be appreciated. Thanks in advance. </p>