title: Running my web site in a 32-bit application pool on a 64-bit OS
body: <p>Here is my setup:</p>
  
  <p>Dev:
   - Windows Server 2008 64-bit
   - Visual Studio 2008
   - Solution with 3 class libraries, 1 web application</p>
  
  <p>Staging Web Server:
   - Windows Server 2008 R2 64-bit
   - IIS7.5 Integrated Application Pool with 32-bit Applications Enabled</p>
  
  <p>In Visual Studio I have set all 4 of my projects to compile to 'Any CPU' but when I run this web application on the web server with the 32-bit application pool it times out and crashes. When I run the application pool in 64-bit mode it works fine. The production web server requires me to run 32-bit application pool in 64-bit OS which is why I have this configured in this way on the staging web server.</p>
  
  <p>(I considered posting on ServerFault but the server part seems to be working fine. It is my code specifically that doesn't seem to want to run in 32-bit application pool which is why I am posting here.)</p>
  
  <h3>Edit: Event View Error</h3>
  
  <pre><code>Faulting application name: w3wp.exe, version: 7.5.7600.16385, time stamp: 0x4a5bcd2b
  Faulting module name: KERNELBASE.dll, version: 6.1.7600.16385, time stamp: 0x4a5bdbdf
  Exception code: 0xe053534f
  Fault offset: 0x0000b727
  Faulting process id: 0x%9
  Faulting application start time: 0x%10
  Faulting application path: %11
  Faulting module path: %12
  Report Id: %13
  </code></pre>