[英]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.