Search code examples
asp.net-mvcodp.netelmah

Can ELMAH work with Oracle.ManagedDataAccess?


I have ASP.NET MVC project which connects to Oracle database using Oracle.ManagedDataAccess.dll, so I do not need to install Oracle client on any machine where application is deployed. Is there any option to configure ELMAH to use Oracle.ManagedDataAccess.dll? In other way, as I understand, ELMAH can use only Oracle client?


Solution

  • The newest version of the Oracle error logger for ELMAH, actually supports both Oracle Client and Oracles own .NET client:

    https://github.com/JamesDriscoll/ELMAH.OracleErrorLog/blob/master/src/OracleErrorLog.cs#L429

    There's no 2.x NuGet package of ELMAH, containing this error logger yet. You can clone the ELMAH repository from GitHub and distribute it through source control, internal NuGet server, or MyGet. Alternatively, you can create your own error log implementation: Writing custom error loggers for ELMAH.