问题:部署在安装oracle client 11g,运行后出现如下问题:
*****************Exception Text*************** System.TypeInitializationException: The type initlializer for 'Oracle.DataAccess.Client.OracleConnection at Oracle.DataAccess.Client.OracleConnection..cctor() --- End of inner exception stack trace --- at Oracle.DataAccess.Client.OracleConnection..ctor(String connectionString) ...
从oracle 网站下载 ODAC1120320Xcopy_32bit :
http://www.oracle.com/technetwork/database/windows/downloads/utilsoft-087491.html
Reference: Oracle.DataAccess.dll(ODAC1120320Xcopy_32bitodp.net4odp.netin4Oracle.DataAccess.dll)
复制如下dll 到你程序的bin目录中:
- oci.dll (ODAC1120320Xcopy_32bitinstantclient_11_2oci.dll)
- oraociei11.dll (ODAC1120320Xcopy_32bitinstantclient_11_2oraociei11.dll)
- OraOps11w.dll (ODAC1120320Xcopy_32bitodp.net4inOraOps11w.dll)