解决Unable to connect to any of the specified MySQL hosts错误
如果web项目出现Unable to connect to any of the specified MySQL hosts.错误。
源错误提示
<siteMap>
<providers>
<add name="MySqlSiteMapProvider" type="MySql.Web.SiteMap.MySqlSiteMapProvider, MySql.Web, Version=6.9.9.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" connectionStringName="LocalMySqlServer" applicationName="/" />
</providers>
</siteMap>
可以在Web.Config的system.web节点加入
<siteMap>
<providers>
<remove name="MySqlSiteMapProvider"/>
</providers>
</siteMap>
来解决!