Win 2008服务器64位:错误情况:“尝试加载Oracle客户端库抛出BadImageFormatException。在安装了32位Oracle客户端组件的64位模式下运行时,会出现此问题。 [英] Win 2008 server 64 bit : error situation : "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...."

查看:101
本文介绍了Win 2008服务器64位:错误情况:“尝试加载Oracle客户端库抛出BadImageFormatException。在安装了32位Oracle客户端组件的64位模式下运行时,会出现此问题。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello,

在Windows Server 2008 Standard(64位)计算机中托管Web应用程序(在ASP.NET 3.5中开发)。该计算机上安装的数据库是Oracle 10G。但是从应用程序连接数据库时,出现以下错误..."尝试加载Oracle客户端库会引发BadImageFormatException。在安装了32位Oracle客户端组件的64位模式下运行时,会出现此问题。

PL。让我们知道问题是在Oracle端还是MS数据连接端。

如何解决?

问候,
Arindam Gupta

解决方案


嗨ArindamGupta,


您似乎正在尝试以64位模式运行32位Oracle客户端。您有两种方法可以解决此问题: -


· 请访问Oracle支持以查找64位客户端组件。


· 强制您的应用程序以32位模式运行。这可以通过Project->完成。属性 - >构建标签 - >目标平台。


你可以找到相关问题&解决方案在以下链接:


http://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/b8cb5f3d-8e61-4e63-b325-d07b261f77ac/


http://social.msdn.microsoft.com/forums / en-US / netfx64bit / thread / 3f00bf30-2d81-4e6c-9bcc-16e06ebf46eb /


http://www.gbogea.com/tag/oracle


我希望以上信息有所帮助!



谢谢,
Shruti


< p class = MsoNormal style ="margin:0in 0in 10pt"> 注意 - 免责声明


此消息中的链接可能会导致第三方网站。 Microsoft提供第三方资源以帮助您查找客户服务和/或技术支持资源。这些网站的信息如有更改,恕不另行通Microsoft不对任何第三方网站上的内容负责,也不保证第三方信息的准确性。


使用以下材料或示例代码即表示您同意遵守以下许可条款和Microsoft合作伙伴计划协议,其条款通过此引用合并于此。这些许可条款是Microsoft Corporation(或者,如果适用,基于您所在地,其关联公司)与您之间的协议。我们提供给您的任何材料(示例代码除外)仅供您内部使用。提供任何示例代码仅用于说明目的,并非旨在用于生产环境。我们授予您非独家,免版税的使用和修改示例代码的权利,并复制和分发示例代码的目标代码形式,前提是您同意:(i)不使用Microsoft的名称,徽标或商标销售您的软件,其中嵌入了示例代码; (ii)在您的软件产品中包含有效的版权声明,其中嵌入了示例代码; (iii)代表分包商并为分包商的利益提供免责声明,免除间接和后果性损害的责任以及责任的责任限制; (iv)对使用或分发样本代码而产生或导致的任何第三方索赔或诉讼(包括律师费)的Microsoft,其附属公司和供应商进行赔偿,保护无害和保护。




Hello,

In a Windows Server 2008 Standard (64 bit) machine a web application is hosted (developed in ASP.NET 3.5). The Database installed on that machine is Oracle 10G. But while connecting the database from the application, the Following Error appears... "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...."

Pl. let us know whether the problem is on Oracle side or MS data connection side.

How can it be solved??

Regards,
Arindam Gupta

解决方案

Hi ArindamGupta,

It seems that you are trying to run 32 bit Oracle Client in 64 bit mode. You have two options to resolve the issue:-

·          Please visit Oracle support to find 64 bit client component.

·          Force your application to run in 32 bit mode. This can be done with Project-> Properties -> Build Tab -> Target Platform.

You can find related issue & solution at the following links:

http://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/b8cb5f3d-8e61-4e63-b325-d07b261f77ac/

http://social.msdn.microsoft.com/forums/en-US/netfx64bit/thread/3f00bf30-2d81-4e6c-9bcc-16e06ebf46eb/

http://www.gbogea.com/tag/oracle

I hope above information helps!


Thanks,
Shruti

 NOTE - Disclaimer

The links in this message may lead to third-party Web sites. Microsoft provides third-party resources to help you find customer service and/or technical support resources. Information at these sites may change without notice. Microsoft is not responsible for the content at any third-party Web sites and does not guarantee the accuracy of third-party information.

 By using the following materials or sample code you agree to be bound by the license terms below and the Microsoft Partner Program Agreement the terms of which are incorporated herein by this reference. These license terms are an agreement between Microsoft Corporation (or, if applicable based on where you are located, on of its affiliates) and you. Any materials (other than sample code) we provide to you are for your internal use only. Any sample code is provided for the purpose of illustration only and is not intended to be used in a production environment. We grant you a nonexclusive, royalty-free right to use and modify the sample code and to reproduce and distribute the object code form of the sample code, provided that you agree: (i) to not use Microsoft's name, logo, or trademarks to market your software produced in which the sample code is embedded; (ii) to include a valid copyright notice on your software product in which the sample code is embedded; (iii) to provide on behalf of and for the benefit of your subcontractors a disclaimer of warranties, exclusion of liability for indirect and consequential damages and a responsible limitation of liability; and (iv) to indemnify, hold harmless, and defend Microsoft, its affiliates and suppliers from and against any third party claims or lawsuits, including attorney's fees, that arise or result from the use or distribution of the sample code.

 


这篇关于Win 2008服务器64位:错误情况:“尝试加载Oracle客户端库抛出BadImageFormatException。在安装了32位Oracle客户端组件的64位模式下运行时,会出现此问题。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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