无法加载文件或程序Oracle.DataAccess [英] Could not load file or assembly Oracle.DataAccess

查看:1149
本文介绍了无法加载文件或程序Oracle.DataAccess的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个asp.net MVC(EF)的项目,

I have an asp.net mvc (EF) project , I had downloaded oracle data provider with version 4.112.2.50 -32bit on my pc when moving project to windows server 2008 (I have the same version of odp-64bit) I have the below problem:

无法加载文件或程序集Oracle.DataAccess或之一其
  依赖。一个试图加载程序使用不正确的
  格式。

Could not load file or assembly 'Oracle.DataAccess' or one of its dependencies. An attempt was made to load a program with an incorrect format.

当我托克甲骨文Oracle.DataAccess.dll从服务器上和我的项目引用使它
我有一个像上面的另一个错误信息与文件Oracle.Web

when I toke Oracle the "Oracle.DataAccess.dll" from the server and make it with my project reference I have another error message like the above with a file "Oracle.Web"

无法加载文件或程序集Oracle.Web或之一其
  依赖。一个试图加载程序使用不正确的
  格式。

Could not load file or assembly 'Oracle.Web' or one of its dependencies. An attempt was made to load a program with an incorrect format.

另外,如果我得到的文件Oracle.Web.dll从我有同样的错误与Oracle.Web

also if I get the File "Oracle.Web.dll" to my project reference from the server I have the same error with "Oracle.Web"

推荐答案

IIS管理器选择您的服务器,然后选择 应用程序池 。选择您的Web应用程序所使用的应用程序池,然后单击 高级设置从右手菜单。

In the IIS Manager select your server and select "Application Pools". Select the application pool used by your Web App and click on "Advanced Settings" from the right hand menu.

普通科高级设置中点击 启用32位应用程序 并将其设置为真正

In the "General Section" of the advanced Settings click on the "Enable 32-bit Applications" and set it to True.

此修复程序仅适用于试图执行的Oracle dll的32位版本的64位服务器。

This fix only applies to 64-bit servers that attempt to execute the 32-bit version of the Oracle Dlls.

问候
乔治

这篇关于无法加载文件或程序Oracle.DataAccess的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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