问题描述
"/"应用程序中的服务器错误.
无法加载文件或程序集``Oracle.DataAccess,Version = 2.112.2.0,Culture = neutral,PublicKeyToken = 89b483f429c47342''或其依赖项之一.系统找不到指定的文件.
说明:执行当前Web请求期间发生未处理的异常.请查看堆栈跟踪,以获取有关错误及其在代码中起源的更多信息.
异常详细信息:System.IO.FileNotFoundException:无法加载文件或程序集"Oracle.DataAccess,Version = 2.112.2.0,Culture = neutral,PublicKeyToken = 89b483f429c47342"或其依赖项之一.系统找不到指定的文件.
源错误:
当前Web请求的执行期间生成了未处理的异常.可以使用下面的异常堆栈跟踪来标识有关异常的来源和位置的信息.
程序集加载跟踪:以下信息有助于确定为什么无法加载程序集``Oracle.DataAccess,Version = 2.112.2.0,Culture = neutral,PublicKeyToken = 89b483f429c47342''.
WRN:程序集绑定日志记录已关闭.
若要启用程序集绑定失败日志记录,请将注册表值[HKLM \ Software \ Microsoft \ Fusion!EnableLog](DWORD)设置为1.
注意:与程序集绑定失败日志记录相关的性能损失.
要关闭此功能,请删除注册表值[HKLM \ Software \ Microsoft \ Fusion!EnableLog].
Server Error in ''/'' Application.
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.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IO.FileNotFoundException: 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.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Assembly Load Trace: The following information can be helpful to determine why the assembly ''Oracle.DataAccess, Version=2.112.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342'' could not be loaded.
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
推荐答案
异常详细信息:System.IO.FileNotFoundException:无法加载文件或程序集''Oracle.DataAccess,Version = 2.112.2.0,Culture = neutral,PublicKeyToken = 89b483f429c47342''或其依赖项之一.系统找不到指定的文件.
Exception Details: System.IO.FileNotFoundException: 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.
在这种情况下,您需要将此特定的dll添加到您的项目中,并确保使用正确的版本.
您只需右键单击项目->添加参考-> .net
in this case, you need to add this particular dll to your project, make sure that you are using the correct version.
You can simply right click on project --> Add reference -- > .net
这篇关于我无法访问数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!