How can I get unmanaged ODP.NET (64-bit) running in ASP.NET on 64-bit O / S?

I need to get an outdated application using unmanaged ODP.NETone running on a machine 64-bit.

  • I have installed 64-bit unmanaged ODP.NET
  • I checked that it 64-bit unmanaged ODP.NETworks fine by testing it in a console application
  • I created a test web application with the same data access code as the work console application, and a link to the same DLL Oracle.Data.Accessin GACthat the console application uses. The web application cannot connect to the database. The code fragment does not matter, since the code works and is very simple (see Clause 2.).

Does not work conn.Open();

Exception.Message is empty.

Exception.StackTrace not useful:

 at Oracle.DataAccess.Client.OracleException.HandleErrorHelper(Int32 errCode, 
    OracleConnection conn, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object 
    src, String procedure, Boolean bCheck, Int32 isRecoverable) at 
    Oracle.DataAccess.Client.OracleException.HandleError(Int32 errCode, 
    OracleConnection conn, IntPtr opsErrCtx, Object src) at 
    Oracle.DataAccess.Client.OracleConnection.Open() at 
    TestODPNet.ODPNetTester.Test() in 
    D:\Projects\TestODPNet\TestODPNet\ODPNetTester.cs:line 27

The app works on Local IIS, not IIS Express.

IIS "Enable 32-bit applications" false.

x64-bit, Any CPU.

, 64-bit Windows 10 , 64-bit Windows Server 2012. ODP.NET, . , , 32-bit, , ODP.NET - 64-bit.

: ( ) , , .

? unmanaged ODP.NET (64-bit) ASP.NET 64-bit O/S?

. , ,

2: , , - managed ODP.NET, , , .

+6
1

, , . Win 8.1, IIS

DLL Oracle

enter image description here

    using (OracleConnection conn = new OracleConnection(connectionString))
    {
        conn.Open();

    }

ODP.Net

Oracle .NET,

Oracle.DataAccess.Client ODP.NET .

Oracle.DataAccess.dll. Oracle DLL .

DLL

\ \12.2.0\client_1\odp.net\Bin\4\Oracle.DataAccess.dll

Oracle ODP.Net

enter image description here

(1) machine.config

(2) - GAC

, , :

(1) Oracle ( GAC)

(2) ODP.Net

.

0

All Articles