未找到 ASP.NET 站点的 MSDAORA 提供程序
我在 Windows Server 2003 x64 (IIS 6) 上遇到了奇怪的 Oracle 连接错误,
而代表管理员运行的控制台 .Net 应用程序成功通过 OleDb 连接到 Oracle 10g Express [连接字符串如下所示:Provider=MSDAORA; Data Source=server-ip:port;User Id=user;Password=password;
]
ASP.NET 4.0 网站(应用程序池也代表管理员运行)失败有错误: “MSDAORA”提供程序未在本地计算机上注册
连接字符串相同,但不适用于 asp.net 站点。我该检查什么?
先感谢您!
I've got stuck with strange Oracle connection error on Windows Server 2003 x64 (IIS 6)
While console .Net application that runs onbehalf of administrator successfully connects to Oracle 10g Express via OleDb [Connection string looks like: Provider=MSDAORA;Data Source=server-ip:port;User Id=user;Password=password;
]
ASP.NET 4.0 web-site (application pool runs on behalf of administrator too) fails with error:
The 'MSDAORA' provider is not registered on the local machine
Connection string is the same, but it doesn't work for asp.net site. What shall I check?
Thank you in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
这个Social.MSDN 链接似乎表明您已安装 x86 驱动程序;
从我的角度来看,您有两个选择:
This Social.MSDN link seems to point to the fact that you have x86 drivers installed;
From my viewpoint you have two options:
另一种方法是 为您的应用程序正在使用的 IIS 应用程序池启用 32 位应用程序。我建议 专门为您的应用程序创建一个新的应用程序池,确保启用 32 位应用程序。
您可能会遇到性能问题,但至少您可以正常运行。
Another approach would be to enable 32-bit applications for the IIS Application Pool your application is using. I would suggest creating a new application pool specifically for your application making sure to enable 32-bit applications.
You'll likely suffer performance issues but at least you'll be up and running.
我已经在我的一个应用程序中使用 ASP(MSDAORA 连接)解决了这个问题 - Oracle 环境,并进行了以下修复
http://technet.microsoft.com/en-us/library/cc784046.aspx
步骤
以下是启用 IIS 6.0 在 64 位 Windows 上运行 32 位应用程序的
1.打开命令提示符并导航到 %systemdrive%\Inetpub\AdminScripts 目录。
2. 键入以下命令:
cscript.exe adsutil.vbs set W3SVC/AppPools/Enable32BitAppOnWin64 true
3. 按 Enter。
I have resolved this issue in one of my applications with ASP(MSDAORA connection) - oracle environment with following fix from
http://technet.microsoft.com/en-us/library/cc784046.aspx
following are the steps
To enable IIS 6.0 to run 32-bit applications on 64-bit Windows
1.Open a command prompt and navigate to the %systemdrive%\Inetpub\AdminScripts directory.
2.Type the following command:
cscript.exe adsutil.vbs set W3SVC/AppPools/Enable32BitAppOnWin64 true
3.Press ENTER.