title: Issue With codeSubDirectories
body: <p>This is a lengthy one - please bear..!</p>
  
  <p>I have a web-site that currently uses a monolith "app_code" dll file - and am looking at breaking the dll into pieces for better maintenance.</p>
  
  <p>I'm using the  section in web.config to split-up my app_code into multiple, folder-wise dll files. The section looks like this:</p>
  
  <pre><code>&lt;codeSubDirectories&gt;
    &lt;add directoryName="CodeSubDir1"/&gt;
    &lt;add directoryName="CodeSubDir2"/&gt;
    ...
  &lt;/codeSubDirectories&gt;
  </code></pre>
  
  <p>I've created separate sub-folders for each of the <code>.cs</code> files within the "app_code" folder except for a handful of .cs files that refer each other - so needed to be placed together in the same sub-folder. The .cs files are moved to their corresponding sub-folder.
  After these changes, there is no .cs file that is directly under the "app_code" folder. I've set the order of the elements within <em>codeSubDirectories</em> such that all other references are taken care of.</p>
  
  <p>The site builds and publishes successfully in my dev. environment. The "Allow this precompiled site to be updatable" and "Used fixed naming and single page assemblies" check-boxes are checked while publishing. No <code>app_code.dll</code> and <code>app_code.compiled</code> files are created during the publish as there are no .cs files directly under the "app_code" folder. Every sub-folder under app_code is published as <code>app_subcode_sub_folder_name.dll</code> and <code>app_subcode_sub_folder_name.compiled</code>.</p>
  
  <p>Both the site and its published version work fine as well in my dev. environment.</p>
  
  <p>After I update the published files to my staging setup [<code>.NET 3.5/IIS 6/Win 2003]</code>, I'm getting these two errors [on two separate URLs]:</p>
  
  <p><strong>Error on URL-1:</strong><br>
  Could not load file or assembly 'App_Code, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
  Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 
  Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'App_Code, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
  Source File: xxx\v2.0.50727\Temporary ASP.NET Files\xxx\xxx\xxx\App_Web_xxx.8.cs    Line: 0</p>
  
  <p><strong>Error on URL-2:</strong>
  The resource cannot be found.
  Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.</p>
  
  <p>My staging-update process is: I copy the <code>"app_subcode_xxx.dll"</code> and <code>"app_subcode_xxx.compiled"</code> files to the "bin" folder and delete the existing "app_code.dll" and "app_code.compiled" files. I add the <em>codeSubDirectories</em> section to the web.config on staging.</p>
  
  <p>I've searched the <code>GAC</code>, Code and Registry for any reference to the assembly "app_code" with no luck. What am I missing out? Are there any additional steps needed to make this work on my staging site? Do I need to copy ALL other published DLLs as well from dev. to staging?</p>