在 64 位机器上以 32 位模式运行 Oracle 客户端 [英] Run Oracle Client in 32-bit mode on a 64-bit machine

查看:60
本文介绍了在 64 位机器上以 32 位模式运行 Oracle 客户端的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚从 32 位 Windows 7 桌面转移到了 64 位 Windows 7 笔记本电脑.我们正在开发一个 C# 程序,其中包含解决方案中的大约 60 个项目.我在尝试构建时不断收到以下错误:

I have just moved from a 32-bit Windows 7 desktop to a 64-bit Windows 7 Laptop. We have a C# program that we are developing that contains approximately 60 projects within the solution. I keep getting the following error whilst trying to build:

Attempt to load Oracle client libraries threw BadImageFormatException. This problem will occur when running in 64 bit mode with the 32 bit Oracle client components installed

显然该错误是不言自明的,我正在尝试让我的整个解决方案以 32 位模式加载.我已经完成了每个项目并将目标平台设置为 x86,但我仍然收到此错误.我搜索了谷歌并看到了无数不同的方法,但我似乎无法解决这个问题.确保我的项目在 64 位机器上以 32 位模式运行的最佳方法是什么?

Obviously the error is quite self explanatory and I am trying to get my whole solution to load in 32 bit mode. I have gone through every single project and set the target platform to x86 but I am still getting this error. I have searched Google and seen countless different approaches, but I cant seem to fix this problem. What is the best way to ensure my project is running in 32-bit mode on a 64-bit machine?

我使用的是 Visual Studio 2008.我目前正在考虑降级到 32 位,但真的想避免这样做.

I am using Visual Studio 2008. I am currently considering downgrading to 32-bit but really want to avoid having to do this.

推荐答案

我发现你必须安装 32 位 Oracle 客户端(你可以 从他们的网站下载安装程序),即使您在 64 位机器上运行.

I found that you have to install the 32-bit Oracle client (you can download the installer from their website) even if you are running on a 64-bit machine.

此外,在讨论期间,人们在谈论 32 位模式等.这是您可以检查/设置 IIS 7 托管应用程序的方式.您不需要更改此设置,但为了完整性/将来参考,我已在此处添加.

In addition, during the discussions people were talking about 32-bit mode etc. This is how you can check / set that for an IIS 7 hosted application. You shouldn't need to change this but I have added here for completeness / future reference.

  • 启动 IIS 7 并展开服务器名称节点.
  • 点击应用程序池节点并找到您正在使用的应用程序池.
  • 在右侧面板上点击高级设置...
  • 在出现的弹出框中选中启用 32 位应用程序设置,这是顶部的第三个选项.
  • Launch IIS 7 and expand the server name node.
  • Click on Application Pools node and find the application Pool you are using.
  • On the right-hand panel click Advanced Settings...
  • In the pop-up box that appears check Enabled 32-Bit Applications setting which is third option from the top.

这篇关于在 64 位机器上以 32 位模式运行 Oracle 客户端的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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