在64位操作系统上的32位应用程序池中运行我的网站 [英] Running my web site in a 32-bit application pool on a 64-bit OS

查看:149
本文介绍了在64位操作系统上的32位应用程序池中运行我的网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的设置:

Dev:
-Windows Server 2008 64位
-Visual Studio 2008
-解决方案带有3个类库,1个Web应用程序

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

临时Web服务器:
-Windows Server 2008 R2 64位
-IIS7.5集成应用程序池启用了32位应用程序

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

在Visual Studio中,我将所有4个项目设置为 Any CPU,但是当我在Web服务器上运行此Web应用程序时使用32位应用程序池时,它会超时并崩溃。当我以64位模式运行应用程序池时,它可以正常工作。生产型Web服务器要求我在64位OS中运行32位应用程序池,这就是为什么我在登台Web服务器上以这种方式配置它的原因。

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.

(我考虑过在ServerFault上发布,但服务器部分似乎运行正常。这是我的代码特别不想在32位应用程序池中运行,这就是我在此处发布的原因。)

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

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


推荐答案

可悲的是,我认为这里的人没有任何办法想通了。我正在使用的两个DLL来自下载的ZIP文件,当我进入这些文件的属性时,会有一个框显示它们是从Internet下载的,因此我必须解除阻止它们。似乎64位应用程序池没有兑现这一要求,但是当我降至32位时,它做到了。一旦我解除阻止了DLL,一切就开始正常工作。

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.

这篇关于在64位操作系统上的32位应用程序池中运行我的网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆