如何将orcale.dataaccess.dll从32位更改为64位? [英] How do i change the orcale.dataaccess.dll from 32bit to 64bit?

查看:264
本文介绍了如何将orcale.dataaccess.dll从32位更改为64位?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好b $ b

我目前有一个应用程序是由第三方在Microsoft MVC平台上构建的。



我是试图让应用程序在我的环境中运行,但我有一些启动应用程序运行



他们有一个32位版本的Oracle.dataAccess.dll在应用程序中,我的操作系统是64位,我在项目中有另一个引用64位dll的应用程序。


服务器上的
我安装了.Net4.0 Oracale数据访问客户端64位。



我有尝试了各种方法试图让应用程序运行,但继续得到32位的问题是否有一种方法,我可以将32位转换为64位?



我尝试了什么:



我尝试删除引用并添加64位作为重建应用程序的参考,但这仍然没有成功,如果我这样做,我会得到一个badimage错误吗?

Hi
I currently have an application which was built by 3rd party on Microsoft MVC platform.

I am trying to get the application to run on my environment but i am having some issus getting the application to run

They have a 32bit version of of the Oracle.dataAccess.dll refrenced in the application, my operating system is 64bit, i have another application in the project which references the 64 bit dll.

on the server i have .Net4.0 Oracale Data Access Client 64bit installed.

I have tried various ways of trying to get the application to run but keep getting the issue with the 32bit is there a way i could convert the 32bit to 64 bit?

What I have tried:

I have tried removing the reference and adding the 64bit as a reference rebuilding the application but this still has not been successful, i get a badimage error if i do this any ideas?

推荐答案

如果你想改变Asp.Net应用程序的位数,你需要打开IIS管理器和选择应用程序使用的应用程序池。

然后单击高级设置并更改启用32位应用程序设置。



原因启用32位应用程序通常是因为您无法在Visual Studio中使用64位Web应用程序。

一个常见的解决方案是将Oracle.DataAccess.dll添加到bin目录并引用该文件,当您在64位服务器上发布应用程序时,只需将该dll替换为64位版本。



另一种方法是为Oracle.ManagedDataAccess.dll交换Oracle.DataAccess.dll,它不关心位数甚至安装客户端。
If you want to change the bitness of an Asp.Net application you need to open up IIS Manager and select the application pool your application uses.
Then click advanced settings and change the "Enable 32-Bit Applications" setting.

The reason for enabling 32-Bit applications is usually that you can't use 64-bit web applications with Visual Studio.
A common solution is to add the Oracle.DataAccess.dll to the bin catalog and reference the file, and when you publish the application on a 64-bit server you simply exchange the dll for the 64 bit version.

Yet another way is to exchange the Oracle.DataAccess.dll for Oracle.ManagedDataAccess.dll which doesn't care about bitness or even having the client installed.


这篇关于如何将orcale.dataaccess.dll从32位更改为64位?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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