The requested. NET Framework data provider was not found when accessing the MySQL database. may not be installed. "Solution

Source: Internet
Author: User

A system was recently developed to deploy on a test environment (Win7 environment) and tested, no problem was found, but after the system was deployed to win SERVER2008R2, some pages reported "the requested. NET Framework data provider could not be found." may not be installed. "Error, troubleshoot the server, the framework version on the server is installed from 2.0, 3.5, 4.0, and the developed system can be deployed normally when using a SQL Server database. The final decision is to change the database (from SQL Server to MySQL) caused by environmental problems or configuration problems, and finally by looking for data, Modified the Web. config node problem is resolved, the MySQL-related DLLs added to the Web. config can be, as follows:

1<system.data>2<DbProviderFactories>3<add name="MySQL Data Provider"Invariant="MySql.Data.MySqlClient"description=". Net Framework Data Provider for MySQL"Type="MySql.Data.MySqlClient.MySqlClientFactory, Mysql.data, version=6.6.5.0, Culture=neutral, publickeytoken= C5687FC88969C44D"/>4</DbProviderFactories>5</system.data>
View Code


It contains the name, version, and PublicKeyToken information of the DLL, as long as it corresponds to the DLL you added.

The requested. NET Framework data provider was not found when accessing the MySQL database. may not be installed. "Solution

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.