Unable to find the requested .Net Framework Data Provider in Oracle

前端 未结 4 1532
谎友^
谎友^ 2021-01-12 13:51

string constr = \"Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=spp01)(PORT=1521))(CONNECT_DATA=(SID=Global)));User

Id=SYSMAN;Password=testman3\";

4条回答
  •  离开以前
    2021-01-12 14:20

    This is one of the common issues that all .NET developer who ever using the Oracle Client as Database will face.

    Points to remember:

    • Make sure you have installed Oracle ODAC from Oracle.
    • Check if Oracle.DataAccess is properly installed:(Oracle.DataAccess should be there in DbProviderFactories section)
      • C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.config
      • C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\machine.config
    • If oracle 32bit is installed make sure you're building an application in 32x.
    • Even if you have 32bit/64bit system and 32bit/64bit application. You should refer the same Oracle.Database DLL version as on DbProviderFactories in machine.config

    Screenshot for reference

    Quick Links:

    • Download Path - http://www.oracle.com/technetwork/database/windows/downloads/index-090165.html
    • Similar answer - ODP.NET Managed - Unable to find requested .Net Framework Data Provider

提交回复
热议问题