当前位置:编程学习 > C#/ASP.NET >>

求助。。这是怎么回事啊??

Server Error in '/' Application.
--------------------------------------------------------------------------------

用户 'sq_cdbcw' 登录失败。 
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.Data.SqlClient.SqlException: 用户 'sq_cdbcw' 登录失败。

Source Error: 


Line 21:     protected void Page_Load(object sender, EventArgs e)
Line 22:     {
Line 23:         userInfo = OnlineUsers.UpdateInfo(config.Passwordkey, config.Onlinetimeout);
Line 24:         if (userInfo.Userid>-1)
Line 25:         {
 

Source File: e:\www\www\ocx\index\loginStatus.ascx.cs    Line: 23 

Stack Trace: 


[SqlException (0x80131904): 用户 'sq_cdbcw' 登录失败。]
   System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +437
   System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +82
   System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +105
   System.Data.SqlClient.SqlConnection.Open() +111
   Discuz.Data.DbHelper.ExecuteDataset(CommandType commandType, String commandText, DbParameter[] commandParameters) +204
   Discuz.Data.SqlServer.DataProvider.GetOnlineUserByIP(Int32 userid, String ip) +168
   Discuz.Forum.OnlineUsers.GetOnlineUserByIP(Int32 userid, String ip) +22
   Discuz.Forum.OnlineUsers.UpdateInfo(String passwordkey, Int32 timeout, Int32 uid, String passwd) +503
   Discuz.Forum.OnlineUsers.UpdateInfo(String passwordkey, Int32 timeout) +12
   ocx_index_loginStatus.Page_Load(Object sender, EventArgs e) in e:\www\www\ocx\index\loginStatus.ascx.cs:23
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +34
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +47
   System.Web.UI.Control.LoadRecursive() +131
   System.Web.UI.Control.LoadRecursive() +131
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061

 


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210  --------------------编程问答-------------------- 用户 'sq_cdbcw' 登录失败
你的web.config里配置的数据库连接这个用户名的密码错误了吧 --------------------编程问答-------------------- 用户 'sq_cdbcw' 登录失败。
================
这里都说得很明白了,是用户 'sq_cdbcw'和密码有问题,才登陆失败 --------------------编程问答-------------------- 看起来像是活的链接字符串的时候出的错
GetConnection --------------------编程问答-------------------- 数据库用户名或密码错误,看看你的配置文件 --------------------编程问答-------------------- 数据库是否存在

账号密码正确

SQL服务启动。。 --------------------编程问答-------------------- 又出现新问题了。。。。。
Server Error in '/' Application.
--------------------------------------------------------------------------------

The resource cannot be found. 
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly. 

Requested URL: /defualt.aspx


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210  --------------------编程问答-------------------- Requested URL: /defualt.aspx


路径错误 --------------------编程问答-------------------- 用户登录失败,肯定是配置文件问题 去config里面检查下,链接的 数据库名,密码,服务器名是否有错 --------------------编程问答--------------------
引用 6 楼 cdbcw 的回复:
又出现新问题了。。。。。
Server Error in '/' Application.
--------------------------------------------------------------------------------

The resource cannot be found. 
Description: HTTP 404. The resource……

这个名字的网页存在吗?

或者按照你的路径有这个文件吗? --------------------编程问答-------------------- 404  ~~~  好啊好。。  路径写错了说
补充:.NET技术 ,  ASP.NET
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,