Server Error in '/' Application.

Access denied for user 'SanskaarSchool'@'localhost' (using password: YES)

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: MySql.Data.MySqlClient.MySqlException: Access denied for user 'SanskaarSchool'@'localhost' (using password: YES)

Source Error:


Line 8049:            MySqlConnection con = new MySqlConnection();
Line 8050:            con.ConnectionString = ConfigurationManager.ConnectionStrings["cn"].ConnectionString;
Line 8051:            con.Open();
Line 8052:            MySqlCommand cmd = new MySqlCommand();
Line 8053:            cmd.Connection = con;

Source File: c:\inetpub\vhosts\thesanskaarschool.com\httpdocs\App_Code\Class1.cs    Line: 8051

Stack Trace:


[MySqlException (0x80004005): Access denied for user 'SanskaarSchool'@'localhost' (using password: YES)]
   MySql.Data.MySqlClient.MySqlStream.ReadPacket() +332
   MySql.Data.MySqlClient.NativeDriver.AuthenticateNew(Boolean reset) +438
   MySql.Data.MySqlClient.NativeDriver.Open() +1285
   MySql.Data.MySqlClient.Driver.Open() +36
   MySql.Data.MySqlClient.Driver.Create(MySqlConnectionStringBuilder settings) +202
   MySql.Data.MySqlClient.MySqlPool.GetPooledConnection() +271
   MySql.Data.MySqlClient.MySqlPool.TryToGetDriver() +152
   MySql.Data.MySqlClient.MySqlPool.GetConnection() +57
   MySql.Data.MySqlClient.MySqlConnection.Open() +943
   nslab.Video.Show_All_Data() in c:\inetpub\vhosts\thesanskaarschool.com\httpdocs\App_Code\Class1.cs:8051
   Video_Gallery.listbindV() in c:\inetpub\vhosts\thesanskaarschool.com\httpdocs\Video_Gallery.aspx.cs:19
   Video_Gallery.Page_Load(Object sender, EventArgs e) in c:\inetpub\vhosts\thesanskaarschool.com\httpdocs\Video_Gallery.aspx.cs:12
   System.Web.UI.Control.OnLoad(EventArgs e) +106
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785


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