IIS 7.5使用32位驱动程序而不是64位 [英] IIS 7.5 using 32 bit driver instead of 64 bit
问题描述
我在Windows Server 2008 R2计算机上使用IIS 7.5通过ODBC驱动程序3.51连接到MySQL服务器。
I am using IIS 7.5 on a Windows Server 2008 R2 machine to connect to a MySQL server through ODBC driver 3.51.
当我在VS 2010中开发应用程序时,我创建了一个64 DSN(使用c:\\\\windows \ sysWOW64 \odbcad32.exe)进行连接,一切都很顺利。
When I developed the application in VS 2010, I created a 64 DSN (using c:\windows\sysWOW64\odbcad32.exe) for the connection and everything was going great.
但是,当我在IIS上部署应用程序时,它没有使用此DSN。所以我创建了一个32位的DSN。
However when I have deployed the application on IIS, it is not using this DSN. So I created a 32 bit DSN.
现在我面临着算术运算导致每个其他页面出现溢出的问题。
请帮忙。如何让IIS使用我在开发应用程序时创建的64位DSN?
Please help. How can make IIS use 64 bit DSN that I created while developing the application?
推荐答案
检查启用32位应用程序
设置您的网站应用程序池在32或64位模式下运行您的网站之间切换。
Check the Enable 32 Bit Applications
setting of your websites Application Pool to switch between running your website in 32 or 64 Bit mode.
参见如何启用32位应用程序有关详细信息,请参阅IIS 7中的池。
这篇关于IIS 7.5使用32位驱动程序而不是64位的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!