Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type.GetType()Unable to read parameter is 'Oracle.DataAccess.Client, Oracle.DataAccess' and 'Oracle.ManagedDataAccess.Client, Oracle.ManagedDataAccess, Culture=neutral, PublicKeyToken=89b483f429c47342' #613

Open
xqpGitHub opened this issue Jul 28, 2021 · 1 comment

Comments

@xqpGitHub
Copy link

protected DbProviderFactory GetFactory(params string[] assemblyQualifiedNames)
{
Type ft = null;
foreach (var assemblyName in assemblyQualifiedNames)
{
ft = Type.GetType(assemblyName);
if (ft != null)
break;
}

        if (ft == null)
            throw new ArgumentException("Could not load the " + GetType().Name + " DbProviderFactory.");

        return (DbProviderFactory)ft.GetField("Instance").GetValue(null);
    }

Type.GetType无法读取“Oracle.ManagedDataAccess.Client, Oracle.ManagedDataAccess, Culture=neutral, PublicKeyToken=89b483f429c47342"
和“Oracle.DataAccess.Client, Oracle.DataAccess”
09f8c36974b0ee44019ad5a0fbfa4b9

@iadaz
Copy link
Collaborator

iadaz commented Jul 29, 2021

I have not used the Oracle provider, but are the answers here useful: https://stackoverflow.com/questions/30407213/oracle-net-manageddataaccess-error-could-not-load-type-oracleinternal-common

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants