Hi All,
We have developed web application in asp.net C# using oracle database and we hosted in iis server in this we are below error. Pleasse kindly us on this,we are facing this one on production environment.
"The type initializer for 'Oracle.DataAccess.Client.OracleConnection' threw an exception"
TIA

Satya KarkiPosted Feb 6, 2022, 2:24 PM
Hi, you can try installing:
either
1. Oracle Client on the PC where you have hosted the app.
or
2. use Oracle.ManagedDataAccess.dll in the project through Manage Nuget Packages
You can check the details here:
https://stackoverflow.com/questions/914291/the-type-initializer-for-oracle-dataaccess-client-oracleconnection-threw-an-ex