ASP.Net Searches for Assmblies in wrong location
<p>I've got an application that works perfectly on Server A, but fails to load a DLL from the Bin folder on server B.</p>

<p>The error given on the webpage is:</p>

<p>Could not load file or assembly 'DocuWare.Remoting.SSL.SSPI.dll' or one of its dependencies. The specified module could not be found. </p>

<p>I've checked the following so far, and they're identical or have non-relevant changes:</p>

<ul>
<li>Machine.config All Web.configs (Those on C:\, and root of inetpub, and in the application)</li>
<li>Permissions on the file Application itself (checked with Beyond compare binary compare)</li>
<li>IIS Version (6)</li>
<li>Server OS (Server 2003, upgrading is not an option)</li>
<li>Cleared every cache I could find</li>
<li>Rebooted multiple times</li>
</ul>

<p>Where do I go from here?</p>

<p>Here's what the Output from Process Monitor looks like: </p>

<p><strong>Good machine:</strong></p>

<blockquote>
  <p>3:56:14.6634916 PM    w3wp.exe    3912    QueryOpen   D:\inetpub\Application\bin\DocuWare.Remoting.SSL.SSPI.dll   SUCCESS CreationTime: 2/3/2016 2:56:02 PM, LastAccessTime: 2/3/2016 3:53:07 PM, LastWriteTime: 3/20/2012 3:34:38 AM, ChangeTime: 2/3/2016 2:56:02 PM, AllocationSize: 181,248, EndOfFile: 181,248, FileAttributes: A</p>
</blockquote>

<p><strong>Bad Machine:</strong></p>

<blockquote>
  <p>3:03:20.5299875 PM w3wp.exe    3916    QueryOpen   D:\inetpub\Application\bin\DocuWare.Remoting.SSL.SSPI.dll   SUCCESS CreationTime: 2/3/2016 2:58:35 PM, LastAccessTime: 2/3/2016 2:58:35 PM, LastWriteTime: 3/20/2012 3:34:38 AM, ChangeTime: 2/3/2016 2:58:35 PM, AllocationSize: 181,248, EndOfFile: 181,248, FileAttributes: A
  3:03:20.5503911 PM w3wp.exe    3916    QueryOpen   C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\Application\751e867b\de1d3917\assembly\dl3\35c61e5a\000b1bab_7c06cd01\DocuWare.Remoting.SSL.SSPI.dll  SUCCESS CreationTime: 2/2/2016 3:33:17 PM, LastAccessTime: 2/3/2016 9:51:53 AM, LastWriteTime: 3/20/2012 3:34:38 AM, ChangeTime: 2/2/2016 3:38:17 PM, AllocationSize: 184,320, EndOfFile: 181,248, FileAttributes: A
  3:03:20.6090648 PM w3wp.exe    3916    QueryOpen   C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\Application\751e867b\de1d3917\assembly\dl3\35c61e5a\000b1bab_7c06cd01\DocuWare.Remoting.SSL.SSPI.dll  SUCCESS CreationTime: 2/2/2016 3:33:17 PM, LastAccessTime: 2/3/2016 9:51:53 AM, LastWriteTime: 3/20/2012 3:34:38 AM, ChangeTime: 2/2/2016 3:38:17 PM, AllocationSize: 184,320, EndOfFile: 181,248, FileAttributes: A
  3:03:20.6094970 PM w3wp.exe    3916    QueryOpen   C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\Application\751e867b\de1d3917\assembly\dl3\35c61e5a\000b1bab_7c06cd01\DocuWare.Remoting.SSL.SSPI.dll  SUCCESS CreationTime: 2/2/2016 3:33:17 PM, LastAccessTime: 2/3/2016 9:51:53 AM, LastWriteTime: 3/20/2012 3:34:38 AM, ChangeTime: 2/2/2016 3:38:17 PM, AllocationSize: 184,320, EndOfFile: 181,248, FileAttributes: A
  3:03:20.6156343 PM w3wp.exe    3916    CreateFile  C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\Application\751e867b\de1d3917\assembly\temp\AD9NLH9SDO\DocuWare.Remoting.SSL.SSPI.DLL SUCCESS Desired Access: Write Attributes, Synchronize, Disposition: Open, Options: Synchronous IO Non-Alert, Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened
  3:03:20.6157574 PM w3wp.exe    3916    QueryNetworkOpenInformationFile C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\Application\751e867b\de1d3917\assembly\temp\AD9NLH9SDO\DocuWare.Remoting.SSL.SSPI.DLL SUCCESS CreationTime: 2/2/2016 3:33:17 PM, LastAccessTime: 2/3/2016 9:51:53 AM, LastWriteTime: 3/20/2012 3:34:38 AM, ChangeTime: 2/2/2016 3:38:17 PM, AllocationSize: 184320, EndOfFile: 181248, FileAttributes: A
  3:03:24.9587326 PM w3wp.exe    3916    RegOpenKey  HKLM\SOFTWARE\Microsoft\Fusion\PublisherPolicy\Default\v4.0_policy.5.1.DocuWare.Remoting.SSL.SSPI__879da714589ba9ea NAME NOT FOUND<br>
  3:03:24.9587462 PM w3wp.exe    3916    RegOpenKey  HKLM\SOFTWARE\Microsoft\Fusion\PublisherPolicy\Default\policy.5.1.DocuWare.Remoting.SSL.SSPI__879da714589ba9ea  NAME NOT FOUND<br>
  3:03:24.9592127 PM w3wp.exe    3916    QueryOpen   C:\WINDOWS\Microsoft.Net\assembly\GAC_32\DocuWare.Remoting.SSL.SSPI\v4.0_5.1.3.2__879da714589ba9ea\DocuWare.Remoting.SSL.SSPI.dll   PATH NOT FOUND<br>
  3:03:24.9592589 PM w3wp.exe    3916    QueryOpen   C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\DocuWare.Remoting.SSL.SSPI\v4.0_5.1.3.2__879da714589ba9ea\DocuWare.Remoting.SSL.SSPI.dll PATH NOT FOUND<br>
  3:03:24.9593042 PM w3wp.exe    3916    QueryOpen   C:\WINDOWS\Microsoft.Net\assembly\GAC\DocuWare.Remoting.SSL.SSPI\v4.0_5.1.3.2__879da714589ba9ea\DocuWare.Remoting.SSL.SSPI.dll  PATH NOT FOUND<br>
  3:03:24.9593387 PM w3wp.exe    3916    QueryOpen   C:\WINDOWS\assembly\GAC_32\DocuWare.Remoting.SSL.SSPI\5.1.3.2__879da714589ba9ea\DocuWare.Remoting.SSL.SSPI.dll  PATH NOT FOUND<br>
  3:03:24.9593799 PM w3wp.exe    3916    QueryOpen   C:\WINDOWS\assembly\GAC_MSIL\DocuWare.Remoting.SSL.SSPI\5.1.3.2__879da714589ba9ea\DocuWare.Remoting.SSL.SSPI.dll    PATH NOT FOUND<br>
  ...</p>
</blockquote>