title: ODP.NET Managed - Unable to find requested .Net Framework Data Provider
body: <p>Using Visual Studio 2013, I've added the latest version of ODP.NET Managed to a project using Nuget:</p>
  
  <pre><code>Install-Package odp.net.managed
  </code></pre>
  
  <p><a href="http://www.nuget.org/packages/odp.net.managed/121.1.2">http://www.nuget.org/packages/odp.net.managed/121.1.2</a></p>
  
  <p>Now, when I try to run the following code:</p>
  
  <pre><code>Database db = DatabaseFactory.CreateDatabase();
  </code></pre>
  
  <p>It throws the following exception:</p>
  
  <pre><code>An exception of type 'System.ArgumentException' occurred 
  in System.Data.dll but was not handled in user code
  Additional information: Unable to find the requested .Net
  Framework Data Provider.  It may not be installed.
  </code></pre>
  
  <p>After reading of other users's similar issues, I added the Managed driver section to C:\Windows\Microsoft.Net\Framework64\v4.0.30319\Config\machine.config:</p>
  
  <pre><code>&lt;system.data&gt;
          &lt;DbProviderFactories&gt;&lt;add name="Microsoft SQL Server Compact Data Provider 4.0" invariant="System.Data.SqlServerCe.4.0" description=".NET Framework Data Provider for Microsoft SQL Server Compact" type="System.Data.SqlServerCe.SqlCeProviderFactory, System.Data.SqlServerCe, Version=4.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91"/&gt;
          &lt;add name="ODP.NET, Managed Driver" invariant="Oracle.ManagedDataAccess.Client" description="Oracle Data Provider for .NET, Managed Driver" type="Oracle.ManagedDataAccess.Client.OracleClientFactory, Oracle.ManagedDataAccess, Version=4.121.1.0, Culture=neutral, PublicKeyToken=89b483f429c47342" /&gt;
      &lt;/DbProviderFactories&gt;
      &lt;/system.data&gt;
  </code></pre>
  
  <p>But that had no affect.</p>
  
  <p>I have the connection string specified as such in my web.config, but I'm not sure if it is even looking at the connection string format as it is failing before I open the connection:</p>
  
  <pre><code>&lt;connectionStrings&gt;
      &lt;add name="OneCDPBuild" 
      providerName="Oracle.ManagedDataAccess.Client" 
      connectionString="Data Source=database;user id=IDhere;pwd=passwordhere;" /&gt;
    &lt;/connectionStrings&gt;
  </code></pre>
  
  <p>I added the following to my web config:</p>
  
  <pre><code>&lt;system.data&gt;
      &lt;DbProviderFactories&gt;
        &lt;remove invariant="Oracle.ManagedDataAccess.Client" /&gt;
        &lt;add name="ODP.NET, Managed Driver"
             invariant="Oracle.ManagedDataAccess.Client"
             description="Oracle Data Provider for .NET, Managed Driver"
             type="Oracle.ManagedDataAccess.Client.OracleClientFactory, Oracle.ManagedDataAccess, Version=4.121.1.0, Culture=neutral, PublicKeyToken=89b483f429c47342" /&gt;
      &lt;/DbProviderFactories&gt;
    &lt;/system.data&gt;
  </code></pre>