错误:找不到请求的 .Net Framework Data Provider。可能没有安装.

解决方案:
1,打开配置文件
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.config
2.将vs的app.config配置文件的

< DbProviderFactories>
< remove invariant=“Oracle.ManagedDataAccess.Client” />
< 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.122.19.1, Culture=neutral, PublicKeyToken=89b483f429c47342” />
< /DbProviderFactories>
复制到machine.config对应的DbProviderFactories节点上即可

你可能感兴趣的:(错误:找不到请求的 .Net Framework Data Provider。可能没有安装.)