Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

Edit: Event View Error

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
like image 602
Jeremy H Avatar asked Dec 23 '22 04:12

Jeremy H


1 Answers

Sadly, I don't think there is any way someone here could have figured this out. Two DLLs I was using came from a downloaded ZIP file and when I went to the properties of those files there was a box that said they had been downloaded off the internet and I had to "unblock" them. Seems the 64-bit app pool did not honor this, but when I dropped to 32-bit it did. Once I "unblocked" the DLLs everything started working just fine.

like image 176
Jeremy H Avatar answered Dec 29 '22 03:12

Jeremy H