The provider is not compatible with the version of Oracle client

前端 未结 27 1698
一生所求
一生所求 2020-11-22 05:37

I\'m trying to use the Oracle ODP.NET 11g (11.1.0.6.20) Instant Client on my ASP.net project as a Data Provider but when I run the aspx pag

27条回答
  •  爱一瞬间的悲伤
    2020-11-22 06:33

    You should "ignore" all the x86/x64 talk here for starters and instead try the ODP.NET Managed Driver (if you are using .Net v4+):

    https://www.nuget.org/packages/Oracle.ManagedDataAccess/

    https://www.nuget.org/packages/Oracle.ManagedDataAccess.EntityFramework/

    Oracle ODP.net Managed vs Unmanaged Driver

    Avoid all the "unmanaged" what DLL what architecture issues! :D (about time Oracle).

    The NuGet package (also works for 11g):

    The old / manual method:

    For info on how to convert to using the managed libraries:

    • First, here is a great code comparison of managed vs unmanaged: http://docs.oracle.com/cd/E51173_01/win.122/e17732/intro005.htm#ODPNT148
    • Ensure you have downloaded the ODP.NET, Managed Driver Xcopy version only
    • From the downloaded zip file, copy and paste into your project directory:
      • Oracle.ManagedDataAccessDTC.dll
      • Oracle.ManagedDataAccess.dll
    • Add a reference to Oracle.ManagedDataAccess.dll
    • Ensure your exe is released (added to Application Folder in VS2010) with both dlls

提交回复
热议问题