This discussion is archived
3 Replies Latest reply: Feb 12, 2013 3:37 AM by 561758 RSS

'System.AccessViolationException' occured in Oracle.DataAccess.dll

869869 Newbie
Currently Being Moderated
Hi everyone,

I've just moved my development environment to a new machine and oddly I cannot run my .NET 4 app in Visual Studio 2010 any more. Whenever I run the .NET 4 app - no matter if it's in debug mode or not - I get the error "A first chance exception of type 'System.AccessViolationException' occurred in Oracle.DataAccess.dll" and WebDev.WebServer40.exe crashes at the point where it tries to connect to Oracle. My environment is

WinXP, Oracle 11gR2 client, ODAC112021 (same ORA_HOME as full client), Visual Studio 2010 SP1, .NET 4

I've already googled for this problem but couldn't find anything helpful. Can anyone point me in the right direction?

thank you
Oliver
  • 1. Re: 'System.AccessViolationException' occured in Oracle.DataAccess.dll
    869869 Newbie
    Currently Being Moderated
    After installing ODAC112021 into a different directory than Oracle 11gR2 client it works. Am able to run my apps from VS2010 again.


    Oliver
  • 2. Re: 'System.AccessViolationException' occured in Oracle.DataAccess.dll
    Tridus Journeyer
    Currently Being Moderated
    That seems to be the case sometimes. I'm not sure if you're intended to need two Oracle installs if you use both .net apps and things that use the normal client, or what. It's odd.
  • 3. Re: 'System.AccessViolationException' occured in Oracle.DataAccess.dll
    561758 Newbie
    Currently Being Moderated
    Hi,

    We have a legacy ASP.NET 2.0 application using Oracle Client x64 10g. We recently migrated to ASP.NET 4.0 application using Oracle Client x64 11.2.0.3.0, running on Windows 2008 Enterprise R2. We encountered the below errors in Event Viewer.

    ----------------------------------------------------------------------------
    I.
    Error 2/8/2013 5:10:29 AM .NET Runtime 1026 None
    Application: abc.exe (ASP.NET 4.0)
    Framework Version: v4.0.30319
    Description: The process was terminated due to an unhandled exception.
    Exception info: System.AccessViolationException
    Stack:
    at Oracle.DataAccess.Client.OpsCon.Dispose(....)
    at Oracle.DataAccess.Client.ConnectionPool.RegulateNumOfCons(..)
    at System.Threading.TimerCallback.PerformTimerCallback(..)
    ----------------------------------------------------------------------------
    +2.+
    Error 2/8/2013 6:43:40 AM .NET Runtime 1026 None
    Application: abc.exe (ASP.NET 4.0)
    Framework Version: v4.0.30319
    Description: The process was terminated due to an unhandled exception.
    Exception info: System.AccessViolationException
    Stack:
    at Oracle.DataAccess.Client.OpsSql.FreeCtx(....)
    at Oracle.DataAccess.Client.OracleCommand.FreeAllCtx()
    at Oracle.DataAccess.Client.OracleCommand.Dispose()
    at System.ComponentModel.Component.Finalize()
    ----------------------------------------------------------------------------
    +3.+
    Error 2/8/2013 6:43:43 AM Application Error 1000 (100)
    Faulting application name: ABC.exe version; 1.0, time stamp: 0x5113bdc9
    Faulting module name: KERNELBASE.dll, version: 6.1.7601.17651. time stamp: 0x4e21213c
    Exception Code: 0x000005
    Fault offset: 0x000000000000cacd
    Faulting Process id: 0x1f08
    Faulting application start time: 0x01c05c0cd7e52
    Faulting application path: C:\...\..
    ----------------------------------------------------------------------------

    Kindly let us know if this is a known issue in Oracle Client 11.2.0.3.0. And please share any workarounds/solutions or comments/suggestions, if any.

    Thanks,
    Venkatesh Pai
    Nous InfoSystems

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points