无法找到请求的.NET Framework数据提供程序。它可能没有安装。 VS 2010和SQL Server 2008 Express的 [英] Unable to find the requested .Net Framework Data Provider. It may not be installed. vs 2010 and sql server 2008 express

查看:241
本文介绍了无法找到请求的.NET Framework数据提供程序。它可能没有安装。 VS 2010和SQL Server 2008 Express的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在VS 2010
我使用这些步骤连接到SQL Server数据库:

in vs 2010 I use these steps to connect to sql server database:

in server explorer window,Right Click on Data Connections
Click Add Connection
in choose data source window ,select Sql Server
click continue button
"Add Connection" window will appear
in the server name text box type ".\sqlexpress"
in the select or enter database name type "Person"
Click Test Connection -- i see "test connection successed"
Finally Click OK Button

在第9步我看到这个错误无法找到TI所要求的.NET Framework数据提供它可能不是已安装

at step 9 i see this error "Unable ti find the requested .Net Framework Data Provider It May not be Installed"

推荐答案

有在 machine.config中文件自终止节点。 删除它解决了问题。

There is a self terminating node in the machine.config file. Removing it solved the issue.

machine.config中在

\Windows\Microsoft.net\Framework\vXXXX\machine.config

你可以有基于该框架的许多版本的安装,包括32位和64位变种的配置文件,众说纷纭。

You could have a multitude of config files based on how many versions of the framework are installed, including 32 and 64 bit variants.

<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>

以上文件中删除< DbProviderFactories /> 空标记

有关更多雷丁的 获得一个DbProviderFactory(ADO.NET)

For additional Reding Obtaining a DbProviderFactory (ADO.NET)

我希望这会帮助你。

这篇关于无法找到请求的.NET Framework数据提供程序。它可能没有安装。 VS 2010和SQL Server 2008 Express的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆