Home > Database > Mysql Tutorial > body text

如果在安装32位oracle 客户端组件时的情况下以64位模式运行,将出

WBOY
Release: 2016-06-07 15:51:10
Original
2369 people have browsed it

今天要写个程序,环境是win7 vs2008 oracle.首先得保证能连接到数据库。确认代码是没有问题的,但是拿过来直接。报错: “尝试加载 Oracle 客户端库时引发 BadImageFormatException。如果在安装 32 位 Oracle 客户端组件的情况下以 64 位模式运行,将出现此

今天要写个程序,环境是win7+ vs2008+ oracle.首先得保证能连接到数据库。确认代码是没有问题的,但是拿过来直接。报错:

“尝试加载 Oracle 客户端库时引发 BadImageFormatException。如果在安装 32 位 Oracle 客户端组件的情况下以 64 位模式运行,将出现此问题”

最后发现问题,在网上找到一个解决办法

点击你的项目,右键-->属性,弹出窗口,选 生成,看到“平台”,下拉框中选择 x86

然后就ok了

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!