[求助]用户 'sa' 登录失败。原因: 未与信任 SQL Server 连接相关联。
用户 'sa' 登录失败。原因: 未与信任 SQL Server 连接相关联。
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: 用户 'sa' 登录失败。原因: 未与信任 SQL Server 连接相关联。
Source Error:
Line 385: "密码='" & txt_password.text & "'"
Line 386: Dim comm as new sqlcommand(strsql,conn)
Line 387: conn.Open()
Line 388: Dim sqlreader as sqldatareader=comm.ExecuteReader()
Line 389: If sqlreader.Read() Then ' 表示查找到姓名及, 通过验证
|
Source File: E:\网站\index.aspx Line: 387
Stack Trace:
[SqlException: 用户 'sa' 登录失败。原因: 未与信任 SQL Server 连接相关联。]
System.Data.SqlClient.ConnectionPool.GetConnection(Boolean& isInTransaction) +472
System.Data.SqlClient.SqlConnectionPoolManager.GetPooledConnection(SqlConnectionString options, Boolean& isInTransaction) +372
System.Data.SqlClient.SqlConnection.Open() +384
ASP.index_aspx.login_click(Object Src, EventArgs E) in E:\网站\index.aspx:387
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1277
|