具有不变名称'Oracle.ManagedDataAccess.Client'的ADO.NET提供程序未在计算机或应用程序配置文件中注册

时间:2019-07-09 05:02:08

标签: oracle oracle-manageddataaccess

突然我不能跑步

add-migration a -ProjectName MyProject.Model -ConnectionString "Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=1.1.1.1)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=mydb)));Persist Security Info=True;User Id=myuser;Password=xxxx;" -ConnectionProviderName "Oracle.ManagedDataAccess.Client"

再给我

The ADO.NET provider with invariant name 'Oracle.ManagedDataAccess.Client' is either not registered in the machine or application config file, or could not be loaded. See the inner exception for details.

我尝试为该项目重新安装Oracle.ManagedDataAccess.Client,但这无济于事。

1 个答案:

答案 0 :(得分:0)

不确定是什么,但是在某个时候我看到了与EntityFramework相关的错误,因此我将EntityFramework的所有项目更新为最新的6.2.0,现在错误消失了