The requested. Net Framework Data Provider could not be found. may not be installed.

Source: Internet
Author: User
Tags compact visual studio 2010

The requested. Net Framework Data Provider could not be found. may not be installed.

Workaround:

Install Microsoft SQL Server Compact 4.0.

After you install Microsoft SQL Server Compact 4.0, the program runs fine.

The problem is because the program connects. SDF database error, so install Microsoft SQL Server Compact 4.0.

Microsoft SQL Server Compact 4.0 Chinese version:

http://www.microsoft.com/downloads/zh-cn/details.aspx?familyid=033cfb76-5382-44fb-bc7e-b3c8174832e2& Displaylang=zh-cn

After installation if not:

You cannot connect to SQL Server in Server Explorer in Visual Studio 2010, and the dialog box prompts " the requested. NET Framework Data Provider could not be found. may not be installed "

Workaround:

Open C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config, copy the content under the DbProviderFactories nodeReplaceC:\WINDOWS\Microsoft.NET\Framework\v4.0.30319the corresponding position in the \config\machine.config.


<DbProviderFactories>
<add name= "ODBC data Provider" invariant= "System.Data.Odbc" description= ". Net Framework Data Provider for Odbc" Ty Pe= "System.Data.Odbc.OdbcFactory, System.Data, version=2.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089"/ >
<add name= "OLE DB data Provider" invariant= "System.Data.OleDb" description= ". Net Framework Data Provider for OLE DB "Type=" System.Data.OleDb.OleDbFactory, System.Data, version=2.0.0.0, Culture=neutral, publickeytoken= b77a5c561934e089 "/>
<add name= "OracleClient data Provider" invariant= "System.Data.OracleClient" description= ". Net Framework Data Provider for Oracle "type=" System.Data.OracleClient.OracleClientFactory, System.Data.OracleClient, version=2.0.0.0, Culture=neutral, publickeytoken=b77a5c561934e089 "/>
<add name= "SqlClient data Provider" invariant= "System.Data.SqlClient" description= ". Net Framework Data Provider For SQL Server "Type=" System.Data.SqlClient.SqlClientFactory, System.Data, version=2.0.0.0,

The requested. Net Framework Data Provider could not be found. may not be installed.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.