iamlaksh3

Error:The type initializer for 'Oracle.DataAccess.Client.OracleConnection' thrown

Discussion created by iamlaksh3 on Apr 2, 2014
Latest reply on May 5, 2014 by iamlaksh3
Hi

I am developing custom geoprocessing tool (class-library project) on ArcGIS 10.2. This project uses Oracle.DatAccess from C:\Oracle\product\10.2.0\client_32\ODP.NET\bin\1.x . This is a simple tool which queries oracle 10g database and returns a distinct records from a table. This tool is working fine from tool box but when this tool is published in REST, it throws Oracle type initialize exception on line

Connection = new OracleConnection(constr);


  1. ArcGIS server 10.2, Visual Studio 2012.

  2. Server: Windows 2012 64bit OS

  3. Oracle client : installed both oracle 32 and oracle 64bit (C:\oracle\product\10.2.0\Client_32, C:\oracle\product\10.2.0\Client_64)

  4. PATH: c:\oracle\product\10.2.0\client_64\bin;c:\oracle\product\10.2.0\client_32\bin;

Any clues on this?

Outcomes