Server Error in '/' Application.

You can use sha256 plugin only in SSL connections in this implementation.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NotImplementedException: You can use sha256 plugin only in SSL connections in this implementation.

Source Error:


Line 138:        string connAreaString = ConfigurationManager.AppSettings["THConnectionString"];
Line 139:        MySqlConnection cnxArea = new MySqlConnection(connAreaString);
Line 140:        cnxArea.Open();
Line 141:        MySqlDataAdapter adapterArea = new MySqlDataAdapter();
Line 142:        string cmdAreaText = "SELECT Location, URLLocation, ('" + _country + "') As Country, ('" + PLPagetype + "') As PageType, (CASE WHEN '" + Cpage + "' = '1' THEN CONCAT('/', '" + _country + "/rent/','" + PLPagetype + "-in-',URLLocation,'.html') WHEN '" + Cpage + "' = '2' THEN CONCAT('/', '" + _country + "/','villa-in-',URLLocation,'.html') END) AS URLString, COUNT(*) AS LocationCount, CONCAT(Location, ' (', COUNT(*), ')') AS Details FROM tblproperty_" + _country + " WHERE (Area LIKE ?Area) GROUP BY Location ORDER BY Location";

Source File: C:\inetpub\wwwroot\trustedvillas\11\Controls\results\lastminute\countryresults.ascx.cs    Line: 140

Stack Trace:


[NotImplementedException: You can use sha256 plugin only in SSL connections in this implementation.]
   MySql.Data.MySqlClient.Authentication.Sha256AuthenticationPlugin.GetPassword() +211
   MySql.Data.MySqlClient.Authentication.Sha256AuthenticationPlugin.MoreData(Byte[] data) +30
   MySql.Data.MySqlClient.Authentication.MySqlAuthenticationPlugin.AuthenticationChange() +54
   MySql.Data.MySqlClient.Authentication.MySqlAuthenticationPlugin.Authenticate(Boolean reset) +427
   MySql.Data.MySqlClient.NativeDriver.Open() +823
   MySql.Data.MySqlClient.Driver.Open() +36
   MySql.Data.MySqlClient.Driver.Create(MySqlConnectionStringBuilder settings) +309
   MySql.Data.MySqlClient.MySqlPool.GetPooledConnection() +283
   MySql.Data.MySqlClient.MySqlPool.TryToGetDriver() +152
   MySql.Data.MySqlClient.MySqlPool.GetConnection() +69
   MySql.Data.MySqlClient.MySqlConnection.Open() +3125
   rental_search_results.PopulateLocationsList() in C:\inetpub\wwwroot\trustedvillas\11\Controls\results\lastminute\countryresults.ascx.cs:140
   rental_search_results.Page_Load(Object sender, EventArgs e) in C:\inetpub\wwwroot\trustedvillas\11\Controls\results\lastminute\countryresults.ascx.cs:31
   System.Web.UI.Control.OnLoad(EventArgs e) +104
   System.Web.UI.Control.LoadRecursive() +154
   System.Web.UI.Control.LoadRecursive() +251
   System.Web.UI.Control.LoadRecursive() +251
   System.Web.UI.Control.LoadRecursive() +251
   System.Web.UI.Control.LoadRecursive() +251
   System.Web.UI.Control.LoadRecursive() +251
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4082


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.4076.0