Home > Database > Mysql Tutorial > body text

How to solve the .net program running error after mysql installation

小云云
Release: 2018-02-02 11:19:31
Original
2241 people have browsed it

This article mainly introduces to you the solution to the .net program running error after MySQL is installed. The article introduces it in great detail through sample code. It has certain reference learning value for everyone's study or work. I hope it can help everyone.

Found the problem

Recently, an error occurred when running the .net program after installing mysql:

Error location: C:\Windows\Microsoft.NET\Framework\v4. 0.30319\Config\machine.config

Error message: Unable to load file or assembly "MySql.ConnectorInstaller, Version=6.10.5.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" or one of its dependencies. The system can not find the file specified.

Illustration:

Cause:

When you install MySQL .NET Connector 6.9.4 (maybe other versions) , this annoying error occurs because if you do not uncheck "Web Providers" during the installation process, it will write to your machine.config file, which will cause you to encounter this error.

Correctly solve the problem:

After downloading Connector/Net 6.10.6, cancel the Wen Providers option and execute it until finish

will be found before The MySQLMembershipProvider node in the machine.config file disappeared

The program was executed normally

Related recommendations:

ASP.NET Core Detailed explanation of the application running Vue and deploying it on IIS

Development ideas for testing program running time in php

Calculating program running time in php Class code

The above is the detailed content of How to solve the .net program running error after mysql installation. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!