尝试为网格视图“选择数据源”时出错

尝试为网格视图“选择数据源”时出错

问题描述:

2天前,我正在尝试从我的PC上卸载Oracle数据库。然后我完全卸载了Oracle,然后重新安装它。



无法检索此表的架构。请确保连接设置正确且数据库正确在线。



无法加载文件或程序集'System.Data.Client.OracleClient,Version = 4.0.0.0,Culture = neutral,PublickeyToken = b77a5c561934e089'或者一个它的依赖关系,

系统无法提交指定的文件。



请尽快回复我。



我的尝试:



不知道该怎么办。将目标框架从4.5更改为4.0

2 days ago, I am trying to uninstalled Oracle Database from my PC. then i uninstalled Oracle completely and then re-installed it.

"schema could not be retrieved for this table. Please make sure the connection setting are correct and that the database is online.

Could not load file or assembly 'System.Data.Client.OracleClient, Version=4.0.0.0, Culture=neutral, PublickeyToken=b77a5c561934e089' or one of its dependencies,
The system cannot file the specified."

Please reply me as soon as possible.

What I have tried:

don't know what to do. changed Target framework from 4.5 to 4.0

最有可能的是,由于您重新安装了Oracle,您需要引用的DLL版本已经更改并且参考在您的项目中仍然指向旧版本。删除引用并添加一个新引用。
Most likely, because of your re-installation of Oracle, the version of the DLL you need to reference has changed and the reference in your project(s) still points to the old version. Remove the reference and add a new one.