无法加载文件或程序集“Oracle.DataAccess, Version=2.112.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342”或其依赖项之一
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6837440/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Could not load file or assembly 'Oracle.DataAccess, Version=2.112.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies
提问by praveenb
After deploying asp.net app to the server im getting this error.
将 asp.net 应用程序部署到服务器后,我收到此错误。
Could not load file or assembly 'Oracle.DataAccess, Version=2.112.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. The system cannot find the file specified.
Im using Amazon EC2 instance webserver Windows-2008R2-SP1, i downloaded and installed Oracle client from this link http://www.oracle.com/technetwork/topics/dotnet/utilsoft-086879.htmllateset one Release3
我使用的是 Amazon EC2 实例网络服务器 Windows-2008R2-SP1,我从这个链接下载并安装了 Oracle 客户端 http://www.oracle.com/technetwork/topics/dotnet/utilsoft-086879.html最新版本 Release3
i checked Oracle.DataAcees version in webserver Windows/assembly folder it is same as Version=2.112.2.0, PublicKeyToken=89b483f429c47342
which is in config file.
我在网络服务器 Windows/assembly 文件夹中检查了 Oracle.DataAcees 版本,它与Version=2.112.2.0, PublicKeyToken=89b483f429c47342
配置文件中的版本相同。
Please let me know how to solve this issue. Your help is very much needed.
请让我知道如何解决这个问题。非常需要您的帮助。
Thankyou
谢谢
回答by praveenb
On the webserver goto IIS consoleselect applicationpoolthat you are using and right click->Advanced settings->Enable 32 bit=true
在网络服务器上,转到IIS 控制台,选择您正在使用的应用程序池,然后 右键单击-> 高级设置-> 启用 32 位 = true
Solved issue. Hope someone will benefit ....
解决了问题。希望有人受益....