未找到 ASP.NET 站点的 MSDAORA 提供程序

发布于 2024-12-07 00:40:19 字数 352 浏览 8 评论 0原文

我在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

安穩 2024-12-14 00:40:19

这个Social.MSDN 链接似乎表明您已安装 x86 驱动程序;

从我的角度来看,您有两个选择:

  1. 将应用程序转换为在 IIS 中以 32 位模式运行 - 如果您需要帮助,可以提供帮助。 LINK
  2. 下载并尝试64 位版本的驱动程序。 Oracle x64 下载

This Social.MSDN link seems to point to the fact that you have x86 drivers installed;

From my viewpoint you have two options:

  1. Convert the app to run on 32bit mode in IIS - Can help if you require assistance. LINK
  2. Download and try the 64bit version of the drivers. Oracle x64 downloads
你的笑 2024-12-14 00:40:19

另一种方法是 为您的应用程序正在使用的 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.

嗳卜坏 2024-12-14 00:40:19

我已经在我的一个应用程序中使用 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文