Windows Oracle Data Access Components (MOSC)

MOSC Banner

Error:The type initializer for 'Oracle.DataAccess.Client.OracleConnection' threw an exception

edited Apr 10, 2014 12:00PM in Windows Oracle Data Access Components (MOSC) 1 commentAnswered

Hello All,

I am developing custom class-library project using ESRI product called ArcGIS Desktop. This is developed using C# and targeting Microsoft.NET 3.5.

This project uses Oracle.DatAccess from C:\Oracle\product\10.2.0\client_32\ODP.NET\bin\1.x. This project is working fine as a windows application.

When this project is published as a REST service, application throws an error  Error:The type initializer for 'Oracle.DataAccess.Client.OracleConnection' threw an exception

on the line connection = new OracleConnection(constr). I am developing and publishing in same server. Below are environment details

  1. Server: Windows 2012 64bit Operating System
  2. Installed both oracle 32 and oracle 64bit (C:\oracle\product\10.2.0\Client_32, C:\oracle\product\10.2.0\Client_64)
Tagged:

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center