Skip to content Skip to sidebar Skip to footer

Error Only Occurs After Publishing: "Unable To Connect To Any Of The Specified MySQL Hosts."

During development the program runs fine, but once published I noticed my elements weren't populating properly. I thought at first it was a problem with the update panels, but some

Solution 1:

Make sure the connection string in the web.config file is correct

<add name="STRING_CONNECTION" connectionString="Server=[SERVER];Database=[DATA BASE NAME];Uid=[USER];Pwd=[PASSWORD];" providerName="MySql.Data.MySqlClient"/>

Solution 2:


Post a Comment for "Error Only Occurs After Publishing: "Unable To Connect To Any Of The Specified MySQL Hosts.""