“/”应用程序中的服务器错误。

Authentication to host '127.0.0.1' for user 'root' using method 'mysql_native_password' failed with message: Access denied for user 'root'@'localhost' (using password: YES)

说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.Exception: Authentication to host '127.0.0.1' for user 'root' using method 'mysql_native_password' failed with message: Access denied for user 'root'@'localhost' (using password: YES)

源错误:

执行当前 Web 请求期间生成了未经处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。

堆栈跟踪:


[Exception: Authentication to host '127.0.0.1' for user 'root' using method 'mysql_native_password' failed with message: Access denied for user 'root'@'localhost' (using password: YES)]
   DTcms.DBUtility.DbHelperMySql.Query(String SQLString) in C:\Users\wangw\Desktop\Com.Invoker.Web\DTcms.DBUtility\DbHelperMySql.cs:384
   DTcms.DAL.Mysql.channel_site.GetList(Int32 Top, String strWhere, String filedOrder) in C:\Users\wangw\Desktop\Com.Invoker.Web\DTcms.DAL.Mysql\channel_site.cs:355
   DTcms.BLL.channel_site.GetModelList() in C:\Users\wangw\Desktop\Com.Invoker.Web\DTcms.BLL\channel_site.cs:187
   DTcms.Web.UI.SiteDomains..ctor() in C:\Users\wangw\Desktop\Com.Invoker.Web\DTcms.Web.UI\HttpModule.cs:385
   DTcms.Web.UI.SiteDomains.GetSiteDomains() in C:\Users\wangw\Desktop\Com.Invoker.Web\DTcms.Web.UI\HttpModule.cs:417
   DTcms.Web.UI.HttpModule.GetCurrDomainPath(String requestDomain) in C:\Users\wangw\Desktop\Com.Invoker.Web\DTcms.Web.UI\HttpModule.cs:175
   DTcms.Web.UI.HttpModule.GetSitePath(String webPath, String requestPath, String requestDomain) in C:\Users\wangw\Desktop\Com.Invoker.Web\DTcms.Web.UI\HttpModule.cs:209
   DTcms.Web.UI.HttpModule.ReUrl_BeginRequest(Object sender, EventArgs e) in C:\Users\wangw\Desktop\Com.Invoker.Web\DTcms.Web.UI\HttpModule.cs:144
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +229
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +97


版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.7.2114.0
Baidu
sogou