解决Unable to connect to any of the specified MySQL hosts错误
如果web项目出现Unable to connect to any of the specified MySQL hosts.错误。
源错误提示
1 2 3 4 5 |
<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节点加入
1 2 3 4 5 |
<siteMap> <providers> <remove name="MySqlSiteMapProvider"/> </providers> </siteMap> |
来解决!
如果您对C#游戏开发感兴趣,可以扫下面二维码加入我们的QQ群来一起学习交流
原创文章,转载请注明本文链接地址(违者必究):解决Unable to connect to any of the specified MySQL hosts错误