无法将oracle.dataaccess.dll包含在ASP.NET项目中 [英] cannot complie ASP.NET project with oracle.dataaccess.dll

查看:64
本文介绍了无法将oracle.dataaccess.dll包含在ASP.NET项目中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在编译ASP.NET项目时遇到麻烦.
这是我的项目环境.

1.操作系统是Windows Server 2008(64位版本)
2. Visual Studio 2008
3. oracle数据库11g
4. IIS 7

安装oracle数据库11g时,安装了ODP.NET.
我已经在Visual Studio 2008中创建了Web服务项目.
然后我在ODP.NET文件夹中添加了对Oracle.DataAccess.DLL的引用. Oracle.DataAccess.dll是64位版本.

当我在VS2008下编译项目时,错误消息显示
该平台是32位环境,因此无法编译项目.

我已经尝试了几种措施来消除此错误,但是我做不到.
请给我一些忠告.

谢谢您的阅读.

I am in a trouble compiling ASP.NET project.
Here is my project environment.

1. OS is windows server 2008 ( 64 bit version)
2. Visual studio 2008
3. oracle database 11g
4. IIS 7

When I installed oracle database 11g, ODP.NET was installed.
I have created web service project in visual studio 2008.
Then I added reference to Oracle.DataAccess.DLL in ODP.NET folder.
Oracle.DataAccess.dll is 64 bit version.

When I compile the project under VS2008, error message say that
can not compile the project because the platform is 32bit environment.

I have tried several measures to eliminate this error, but I can''t.
Please give me some adovice.

Thank you for reading.

推荐答案

听起来IIS已配置为在32位环境中运行,并且您正在尝试在64位模块中进行链接.实际上,您正在尝试在一个每个人都只会讲拉丁语的国家/地区使用英语词典.

最简单的解决方案是跟踪Oracle的32位库并使用它.一个更麻烦的选择是重写您的Web服务器以使用64位体系结构.不幸的是,它必须是一个.
It sounds like IIS is configured to run as a 32 bit environment, and you are trying to link in a 64 bit module. In effect, you are trying to use an English dictionary in an country where everyone speaks only Latin.

The easiest solution would be to track down the 32-bit library for Oracle and use that. A messier option would be to rewrite your web server to use the 64-bit architecture. Unfortunately, it has to be one or the other.


1.前几天,我们安装了32位oracle客户端并针对任何cpu进行编译
2.您可能需要在卸载时卸载64位.
3.卸载前保存* .ora文件
笔记.我们尝试在运行IIS的计算机上安装32位和64位oracle客户端,但并没有改变这种情况,因此请卸载64位客户端
1. We had this the other day install the 32 bit oracle client and compile for any cpu
2. You might want to uninstall the 64 bit while your at it.
3. Save your *.ora files before you uninstall
Note. We tried having the 32 bit and the 64 bit oracle client on the machine running IIS, didnt change the situation so uninstall the 64 bit client


这篇关于无法将oracle.dataaccess.dll包含在ASP.NET项目中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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