title: Sitecore instance needs DLL from other project...?
body: <p>Alright guys and gals, this one is really weird: when rebuilding the Lucene indexes for my Web database, my Sitecore instance (6.4.1) is taking a dirt nap. Looking at log files, everything is peachy until the index rebuild starts, and then the log is filled with MEGABYTES of the following stack trace repeated over and over:</p>
  
  <pre><code>ManagedPoolThread #6 15:57:06 ERROR Failed to sort items
  Exception: System.IO.FileNotFoundException
  Message: Could not load file or assembly 'file:///[OTHER PROJECT LIBRARY].dll' or one of its dependencies. The system cannot find the file specified.
  Source: mscorlib
      at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark&amp; stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
      at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark&amp; stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
      at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark&amp; stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks)
      at System.Reflection.RuntimeAssembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, Boolean suppressSecurityChecks, StackCrawlMark&amp; stackMark)
      at System.Reflection.Assembly.LoadFrom(String assemblyFile)
      at Sitecore.Reflection.ReflectionUtil.LoadAssembly(String name)
      at Sitecore.Reflection.ReflectionUtil.CreateObject(String assembly, String className, Object[] parameters)
      at Sitecore.Reflection.ReflectionUtil.CreateObject(String typeName, Object[] parameters)
      at Sitecore.Data.Comparers.ComparerFactory.GetComparer(String sortingId, Database database)
      at Sitecore.Data.Comparers.ComparerFactory.GetComparer(Item item)
      at Sitecore.Configuration.Factory.GetItemComparer(Item item)
      at Sitecore.Data.Managers.ItemProvider.Sort(ItemList items, Item owner)
  </code></pre>
  
  <p>(the [OTHER PROJECT LIBRARY].dll was shortened for privacy, but it's a full path to this project's sitecore/website/bin directory)</p>
  
  <p>The really, really weird thing is that this DLL isn't referenced in any way, shape, or form in both the solution or the entire filetree (both the project and website folders).</p>
  
  <p>But here's the punchline: this DLL isn't even from the same project, it's from a different project I have on my workstation (which is running in its own Sitecore instance alongside this project). </p>
  
  <p>How could this happen? Project A is trying to reference a DLL from Project B, and this DLL isn't referenced in any way. I've even checked the EventQueue tables in my databases... I'm really starting to lose my mind here.</p>