Running my web site in a 32-bit application pool on a 64-bit OS.

Posted by Jeremy H on Stack Overflow See other posts from Stack Overflow or by Jeremy H
Published on 2010-04-11T23:15:42Z Indexed on 2010/04/11 23:23 UTC
Read the original article Hit count: 241

Here is my setup:

Dev: - Windows Server 2008 64-bit - Visual Studio 2008 - Solution with 3 class libraries, 1 web application

Staging Web Server: - Windows Server 2008 R2 64-bit - IIS7.5 Integrated Application Pool with 32-bit Applications Enabled

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.

(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.)

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about c#