Windows Server 2008 r2 64bit 运行ASP提示ADODB.Connection error ‘800a0e7a’错误解决办法

Windows Server 2008 r2 64bit上运行Asp+Access程序时出现如下错误:
ADODB.Connection error ‘800a0e7a’

Provider cannot be found. It may not be properly installed.
原因是64位的iis无法兼容32的jet引擎
网上找到解决办法:
需要让iis以32为的方式运行,只要在命令行输入一下命令 cscript C:\inetpub\adminscripts\adsutil.vbs SET W3SVC/AppPools/Enable32bitAppOnWin64 1 之后IIS就会以32位方式来运行了。
此方法在windows 7 beta上失败
正确解决办法:
以管理员身份运行命令行
转到C:\Inetpub\AdminScripts
运行 cscript.exe adsutil.vbs set W3SVC/AppPools/Enable32BitAppOnWin64 true
出现Enable32BitAppOnWin64           : (BOOLEAN) True 即表示成功
运行iisreset
完成。
重新打开网站,一切使用正常!~

转载于:https://www.cnblogs.com/Dicky/archive/2011/05/07/Windows-Server-2008-r2-ASP-Error-800a0e7a.html

你可能感兴趣的:(Windows Server 2008 r2 64bit 运行ASP提示ADODB.Connection error ‘800a0e7a’错误解决办法)