简体   繁体   English

在安装了32位Oracle客户端的情况下以64位模式运行

[英]Running in 64 bit mode with the 32 bit Oracle client installed

I have Developed an Applicatoin in ASP.NET with C# and I have used oracle database. 我已经使用C#在ASP.NET中开发了Applicatoin,并且使用了oracle数据库。 my prob is when I am running this application from visual studio 2012 it will throw error like 我的问题是,当我从Visual Studio 2012运行此应用程序时,它将引发如下错误

Attempt to load Oracle client libraries threw BadImageFormatException. 尝试加载Oracle客户端库时抛出BadImageFormatException。 This problem will occur when running in 64 bit mode with the 32 bit Oracle client components installed. 在安装了32位Oracle客户端组件的64位模式下运行时,将发生此问题。

but when I host this application in my local iis and make application pool enable 32bit is true then it's working fine. 但是,当我在本地iis中托管此应用程序并使应用程序池启用32位为true时,它就可以正常工作。

can anyone please guid me how can I run this from visual studio. 任何人都可以指导我如何从Visual Studio中运行它。

If it is just the ODP use the managed driver from Oracle. 如果仅仅是ODP,请使用Oracle的托管驱动程序。

http://www.nuget.org/packages/odp.net.managed/ http://www.nuget.org/packages/odp.net.managed/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用32位Oracle Service在64位模式下运行 - Running in 64 bit mode with the 32 bit Oracle Service 在64位计算机上以32位模式运行Oracle客户端 - Run Oracle Client in 32-bit mode on a 64-bit machine 使用32位进程中的64位Oracle Client连接Oracle DB - Connect Oracle DB using 64 bit Oracle Client from 32 bit process 检查我的程序是否在64位机器上以32位模式运行,如果以64位运行 - 如何强制它为32位 - Check if my program is running in 32 bit mode on a 64bit machine, if running in 64bit - how do I force it to be 32bit 如何在我的项目32位应用程序C#中包括oracle客户端64位版本 - how to include oracle client 64 bit version in my project 32 bit application c# 当应用程序为64位时,以32位模式运行代码,可以吗? - Running code in 32bit mode while the app is 64bit, is it possible? 从64位模式运行的c#调用32位COM - Calling 32bit COM from c# running in 64bit mode 如何检查客户端计算机是否正在运行32位或64位OS - How to check if client computer is running a 32-bit or 64-bit OS 检查服务是否在 Windows 上安装为 64 位或 32 位 - Check if service is installed as 64bit or 32bit on Windows Windows服务安装为64位,但以32位运行 - windows service installed as 64 bit, but run as 32 bit
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM