title: FileNotFoundException: Could not load file or assembly 'System.Configuration.ConfigurationManager,
body: <p>I am trying to connect to oracle database from .net core 3.1 using ado.net here's my code</p>
  
  <pre><code>private OracleConnection GetOracleConnection()
  {
              string conString = "Data Source=Q550.adr.XXXX.com;Persist Security,Info=True;User ID=XXXX;Password=CCC39";
              OracleConnection con = new OracleConnection(conString);
              return con;
  }
  </code></pre>
  
  <p>but when this function executes following exception occured at line number 2 </p>
  
  <p><strong>System.TypeInitializationException: 'The type initializer for 'OracleInternal.Common.ProviderConfig' threw an exception</strong></p>
  
  <p>FileNotFoundException: Could not load file or assembly 'System.Configuration.ConfigurationManager, 
   Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified.
  **</p>
  
  <p>Can anyone tell me what's happening ??</p>