ASP.NET Cannot Find MySQL Host Even Though I'm Not Using MySQL

I got the same problem in a BlogEngine site after installing another site with a WordPress application. The installation of WordPress included the installation of MySql, and an entry in the .NET Machine.config file. This is in a Windows Server 2012 R2. You can remove the entry from the machine configuration, but that might cause problems somewhere else. I opted to add a Remove key in the BlogEngine Web.Config file.

Note: added location in configuration file.

<system.web>
    <siteMap defaultProvider="PageSiteMap" enabled="true">
        <providers>   
            <remove name="MySqlSiteMapProvider" />
            ...
        </providers>
    </siteMap>
</system.web>

This solved the problem.


I followed the source file location: C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.config and scrolled to line 285. I deleted the MySQL data on and around this line of code. Ran my application again, and it works fine:

enter image description here


Inside <system.web> add this; Like this as below;

<system.web>
   ...
    <siteMap>
    <providers>   
        <remove name="MySqlSiteMapProvider" />
    </providers>
  </siteMap>
<system.web>