Heres the code that im calling that causes the error
ArrayList vendors = new ArrayList();
ArrayList problems = new ArrayList();
DataTable tbl = DbProviderFactories.GetFactoryClasses();
foreach (DataRow row in tbl.Rows)
{
string providerClass = (string)row[2];
try
{
DbProviderFactories.GetFactory(providerClass); // will throw exception if not configured properly
vendors.Add(CreateProvider((string)row[0], row[1] as string, providerClass));
}
catch (Exception ex)
{
problems.Add(new BadProvider(providerClass, ex));
}
}