尝试添加新的Oracle连接时,实体数据模型向导会异常 [英] Entity Data Model Wizard Gets Exception When Trying to Add a New Oracle Connection

查看:247
本文介绍了尝试添加新的Oracle连接时,实体数据模型向导会异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从oracle数据库生成/更新edmx模型,我需要创建一个与该oracle数据库的新连接.当我单击测试连接"时,它成功,但是当我单击确定"时,出现以下错误:

I'm trying to generate/update an edmx model from an oracle database and I need to create a new connection to that oracle database. When I click "Test Connection" it succeeds but when I click "OK" it gives the following error:

由于对象的当前状态,操作无效

Operation is not valid due to the current state of the object

添加新连接以更新edmx模型时出现

VS 2017错误

VS 2017 error when adding new connection to update edmx model

推荐答案

在全新安装VS2017之后,我遇到了完全相同的问题.

I had the exact same issue after a brand new installation of VS2017.

  1. 安装了VS2017(对于我来说,是企业版).
    • 以前,ODT在社区版中不起作用,但是Oracle可能已解决该问题.
  1. Installed VS2017 (enterprise edition, in my case).
    • Previously ODT didn't work in the community edition, but Oracle might have fixed that.

已安装用于Visual Studio 2017的Oracle开发人员工具

  • ODT破坏了VS2017,我不得不进行修复",从而解决了VS2017甚至无法启动的问题.这是开始解决您描述的问题的地方.

重新安装了 ODAC 12.2c第1版和Oracle Developer Tools为了 Visual Studio(12.2.0.1.0)

Reinstalled ODAC 12.2c Release 1 and Oracle Developer Tools for Visual Studio (12.2.0.1.0)

  • 它先前是为VS2015安装的.

现在,一切都按预期进行,我可以刷新我的EF6模型.

Now, everything works as expected and I'm able to e.g. refresh my EF6 models.

这篇关于尝试添加新的Oracle连接时,实体数据模型向导会异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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