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

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

问题描述

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

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的,但我仍然收到此错误。我已搜查谷歌和见过无数不同的方法,但我似乎无法修复此问题。什么是保证我的项目最好的办法是在32位模式下运行的64位计算机上?

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天全站免登陆