The machine.config file has a self-running node. Removing this solved the problem.
machine.config is located in
\Windows\Microsoft.net\Framework\vXXXX\machine.config
You can have many configuration files based on how many versions of the framework are installed, including 32 and 64-bit options.
<system.data> <DbProviderFactories> <add name="Odbc Data Provider" invariant="System.Data.Odbc" ... /> <add name="OleDb Data Provider" invariant="System.Data.OleDb" ... /> <add name="OracleClient Data Provider" invariant="System.Data ... /> <add name="SqlClient Data Provider" invariant="System.Data ... /> <add name="IBM DB2 for i .NET Provider" invariant="IBM.Data ... /> <add name="Microsoft SQL Server Compact Data Provider" ... /> </DbProviderFactories> <DbProviderFactories/> //remove this one </system.data>
Above the file, remove the <DbProviderFactories/> empty tag.
For More Reading Getting DbProviderFactory (ADO.NET)
Hope this helps you.
Sampath
source share