none
System.AccessViolationException was unhandled occurred in Oracle.DataAccess.dll RRS feed

  • Question

  • Hi,

    I have upgraded my .net project from framework 4.0 to framework 4.6.2 with new oracle version 12 C. The solution is compiling properly without any error. but I am receiving the below error after hosting in iis and while driving through the screens in the application I am getting this below error. Please let me know the solution or work around to fix this issue. Its happening in the server too.

    System.AccessViolationException was unhandled
    Message: An unhandled exception of type 'System.AccessViolationException' occurred in Oracle.DataAccess.dll
    Additional information: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

    Thanks!


    n.anand

    Friday, March 24, 2017 3:02 PM

All replies

  • Hi n.anand,

    Please set a breakpoint on your code and check if it throws any exception. you could also try to re-install odp.net client and check if it works.

    In addition, Since it is third-party library, you could also post your issue on the following forum for suitable support.

    https://community.oracle.com/community/database/developer-tools/windows_and_.net/odp.net

    Best regards,

    Cole Wu


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Monday, March 27, 2017 2:02 AM
    Moderator
  • Hi,

    Thanks for your reply. Here is the error while I am debugging. Let me know is there any solution to fix this issue.

    Exception thrown at 0x00007FFC25EF7B85 (OraOps12.dll) in w3wp.exe: 0xC0000005: Access violation reading location 0x0000000000000000.

    Application: w3wp.exe
    Framework Version: v4.0.30319
    Description: The process was terminated due to an unhandled exception.
    Exception Info: System.AccessViolationException
       at Oracle.DataAccess.Client.OpsCon.Close(IntPtr ByRef, IntPtr ByRef, Oracle.DataAccess.Client.OpoConValCtx*, Oracle.DataAccess.Client.OpoConRefCtx)
       at Oracle.DataAccess.Client.ConnectionPool.CheckLifeTimeAndStatus(Oracle.DataAccess.Client.OpoConCtx ByRef, Boolean, Boolean ByRef, Int32, Boolean, Boolean)
       at Oracle.DataAccess.Client.ConnectionPool.PutConnection(Oracle.DataAccess.Client.OpoConCtx ByRef, Boolean, Boolean, Boolean, Int32, Boolean, Boolean)
       at Oracle.DataAccess.Client.ConnectionDispenser.Close(Oracle.DataAccess.Client.OpoConCtx ByRef, Boolean)
       at Oracle.DataAccess.Client.OracleConnection.Close()
       at Oracle.DataAccess.Client.OracleConnection.Dispose(Boolean)
       at System.ComponentModel.Component.Finalize()


    If there is a handler for this exception, the program may be safely continued.

    Thanks,

    Anand


    n.anand


    • Edited by n.anand Monday, March 27, 2017 7:50 PM
    Monday, March 27, 2017 5:47 PM
  • Hi,

    I am getting below error while debugging as mentioned.

    Faulting application name: w3wp.exe, version: 10.0.10586.0, time stamp: 0x5632d85f

    Faulting module name: OraOps12.dll, version: 2.121.2.0, time stamp: 0x53daead2

    Exception code: 0xc0000005

    Fault offset: 0x0000000000017b85

    Faulting process id: 0x114ac

    Faulting application start time: 0x01d2a7e077848b72

    Faulting application path: c:\windows\system32\inetsrv\w3wp.exe

    Faulting module path: C:\Oracle2\product\12.1.0\client_1\bin\OraOps12.dll

    Report Id: 10eb1069-9b9a-4cd8-a594-f588f972718a

    Faulting package full name:

    Faulting package-relative application ID:

    Fault bucket , type 0

    Event Name: APPCRASH

    Response: Not available

    Cab Id: 0

    Problem signature:

    P1: w3wp.exe

    P2: 10.0.10586.0

    P3: 5632d85f

    P4: OraOps12.dll

    P5: 2.121.2.0

    P6: 53daead2

    P7: c0000005

    P8: 0000000000017b85

    P9:

    P10:

    Attached files:

    These files may be available here:

    C:\ProgramData\Microsoft\Windows\WER\ReportQueue\AppCrash_w3wp.exe_51114672c510f5529ecba919bece3ef57da516b_06fd95ad_a08eb45d

    Fault bucket 120390598317, type 4

    Event Name: APPCRASH

    Response: Not available

    Cab Id: 0

    Problem signature:

    P1: w3wp.exe

    P2: 10.0.10586.0

    P3: 5632d85f

    P4: OraOps12.dll

    P5: 2.121.2.0

    P6: 53daead2

    P7: c0000005

    P8: 0000000000017b85

    P9:

    P10:

    Attached files:

    C:\Windows\Temp\WERB910.tmp.csv

    These files may be available here:

    C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_w3wp.exe_51114672c510f5529ecba919bece3ef57da516b_06fd95ad_2f6eba58


    n.anand

    Tuesday, March 28, 2017 6:06 PM