title: Can not load file or assembly error in dubug but the assembly is not in any reference dirs
body: <p>When I run my project in debug mode in Visual Studio 2013 I get the error:</p>
  
  <blockquote>
    <p>Could not load file or assembly 'ZoomASPX' or one of its dependencies</p>
  </blockquote>
  
  <p>The thing is I have looked in the "References" folder and there is no entry for this assembly, I have also done a search of the entire project for "ZoomASPX" and no files contain it. How can I figure out where this assembly is being called from so I can remove it?</p>
  
  <p>This project is checked into TFS and when I run the project on my desktop I do not get this error. I have checked in all changes from both the problem machine and the working machine then did a "Get Latest Recursive" on both machines but it is only broken on a single machine.</p>
  
  <p>Full error screen:</p>
  
  <blockquote>
    <p>Could not load file or assembly 'ZoomASPX' or one of its dependencies.
    An attempt was made to load a program with an incorrect format.<br>
    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. </p>
    
    <p>Exception Details: System.BadImageFormatException: Could not load
    file or assembly 'ZoomASPX' or one of its dependencies. An attempt was
    made to load a program with an incorrect format.</p>
    
    <p>Source Error: </p>
    
    <p>An unhandled exception was generated during the execution of the
    current web request. Information regarding the origin and location of
    the exception can be identified using the exception stack trace below.</p>
    
    <p>Assembly Load Trace: The following information can be helpful to
    determine why the assembly 'ZoomASPX' could not be loaded.</p>
    
    <p>=== Pre-bind state information === LOG: DisplayName = ZoomASPX  (Partial) WRN: Partial binding information was supplied for an
    assembly: WRN: Assembly Name: ZoomASPX | Domain ID: 2 WRN: A partial
    bind occurs when only part of the assembly display name is provided.
    WRN: This might result in the binder loading an incorrect assembly.
    WRN: It is recommended to provide a fully specified textual identity
    for the assembly, WRN: that consists of the simple name, version,
    culture, and public key token. WRN: See whitepaper
    <a href="http://go.microsoft.com/fwlink/?LinkId=109270" rel="nofollow">http://go.microsoft.com/fwlink/?LinkId=109270</a> for more information and
    common solutions to this issue. LOG: Appbase = file:///C:/Web
    Sites/Final Fantasy Info/FFInfo Main Site/FFInfo.WebUI/ LOG: Initial
    PrivatePath = C:\Web Sites\Final Fantasy Info\FFInfo Main
    Site\FFInfo.WebUI\bin Calling assembly : (Unknown).
    === LOG: This bind starts in default load context. LOG: Using application configuration file: C:\Web Sites\Final Fantasy Info\FFInfo
    Main Site\FFInfo.WebUI\web.config LOG: Using host configuration file:
    C:\Users\Matthew\Documents\IISExpress\config\aspnet.config LOG: Using
    machine configuration file from
    C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
    LOG: Policy not being applied to reference at this time (private,
    custom, partial, or location-based assembly bind). LOG: Attempting
    download of new URL
    file:///C:/Users/Matthew/AppData/Local/Temp/Temporary ASP.NET
    Files/root/4ec24837/6a92d301/ZoomASPX.DLL. LOG: Attempting download of
    new URL file:///C:/Users/Matthew/AppData/Local/Temp/Temporary ASP.NET
    Files/root/4ec24837/6a92d301/ZoomASPX/ZoomASPX.DLL. LOG: Attempting
    download of new URL file:///C:/Web Sites/Final Fantasy Info/FFInfo
    Main Site/FFInfo.WebUI/bin/ZoomASPX.DLL. ERR: Failed to complete setup
    of assembly (hr = 0x8007000b). Probing terminated.</p>
    
    <p>Stack Trace:</p>
    
    <p>[BadImageFormatException: Could not load file or assembly 'ZoomASPX'
    or one of its dependencies. An attempt was made to load a program with
    an incorrect format.]<br>
    System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String
    codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint,
    StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean
    throwOnFileNotFound, Boolean forIntrospection, Boolean
    suppressSecurityChecks) +0<br>
    System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String
    codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint,
    StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean
    throwOnFileNotFound, Boolean forIntrospection, Boolean
    suppressSecurityChecks) +34<br>
    System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName
    assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly,
    StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean
    throwOnFileNotFound, Boolean forIntrospection, Boolean
    suppressSecurityChecks) +152<br>
    System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString,
    Evidence assemblySecurity, StackCrawlMark&amp; stackMark, IntPtr
    pPrivHostBinder, Boolean forIntrospection) +77<br>
    System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString,
    Evidence assemblySecurity, StackCrawlMark&amp; stackMark, Boolean
    forIntrospection) +16    System.Reflection.Assembly.Load(String
    assemblyString) +28<br>
    System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String
    assemblyName, Boolean starDirective) +38</p>
    
    <p>[ConfigurationErrorsException: Could not load file or assembly
    'ZoomASPX' or one of its dependencies. An attempt was made to load a
    program with an incorrect format.]<br>
    System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String
    assemblyName, Boolean starDirective) +736<br>
    System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory()
    +217    System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo
    ai) +130<br>
    System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection
    compConfig) +170<br>
    System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromReferencedAssemblies()
    +91    System.Web.Compilation.BuildManager.CallPreStartInitMethods(String
    preStartInitListPath, Boolean&amp; isRefAssemblyLoaded) +284<br>
    System.Web.Compilation.BuildManager.ExecutePreAppStart() +153<br>
    System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager
    appManager, IApplicationHost appHost, IConfigMapPathFactory
    configMapPathFactory, HostingEnvironmentParameters hostingParameters,
    PolicyLevel policyLevel, Exception appDomainCreationException) +516</p>
    
    <p>[HttpException (0x80004005): Could not load file or assembly
    'ZoomASPX' or one of its dependencies. An attempt was made to load a
    program with an incorrect format.]<br>
    System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9885060 
    System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context)
    +101    System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest
    wr, HttpContext context) +254</p>
  </blockquote>