“/register”应用程序中的服务器错误。
--------------------------------------------------------------------------------用户 'YEYUNQI\ASPNET' 登录失败。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.Data.SqlClient.SqlException: 用户 'YEYUNQI\ASPNET' 登录失败。源错误:
行 104: //SqlConnection conn=new SqlConnection();
行 105: //conn.ConnectionString="initial catalog=user;integrated security=sspi;workstation id=localhost;persist security info=false";
行 106: sqlConnection1.Open();
行 107: //sql="select* from register1 where userid="+userid.Text+"";
行 108: //cmd=new SqlCommand(sql,con);
源文件: c:\inetpub\wwwroot\register\webform1.aspx.cs 行: 106 堆栈跟踪:
[SqlException: 用户 'YEYUNQI\ASPNET' 登录失败。]
System.Data.SqlClient.ConnectionPool.GetConnection(Boolean& isInTransaction)
System.Data.SqlClient.SqlConnectionPoolManager.GetPooledConnection(SqlConnectionString options, Boolean& isInTransaction)
System.Data.SqlClient.SqlConnection.Open()
register.WebForm1.Next1_Click(Object sender, EventArgs e) in c:\inetpub\wwwroot\register\webform1.aspx.cs:106
System.Web.UI.WebControls.Button.OnClick(EventArgs e)
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
System.Web.UI.Page.ProcessRequestMain()
--------------------------------------------------------------------------------
版本信息: Microsoft .NET Framework 版本:1.1.4322.573; ASP.NET 版本:1.1.4322.573
能不能帮小弟解决一下啊!谢谢各位大侠了!!!
--------------------------------------------------------------------------------用户 'YEYUNQI\ASPNET' 登录失败。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.Data.SqlClient.SqlException: 用户 'YEYUNQI\ASPNET' 登录失败。源错误:
行 104: //SqlConnection conn=new SqlConnection();
行 105: //conn.ConnectionString="initial catalog=user;integrated security=sspi;workstation id=localhost;persist security info=false";
行 106: sqlConnection1.Open();
行 107: //sql="select* from register1 where userid="+userid.Text+"";
行 108: //cmd=new SqlCommand(sql,con);
源文件: c:\inetpub\wwwroot\register\webform1.aspx.cs 行: 106 堆栈跟踪:
[SqlException: 用户 'YEYUNQI\ASPNET' 登录失败。]
System.Data.SqlClient.ConnectionPool.GetConnection(Boolean& isInTransaction)
System.Data.SqlClient.SqlConnectionPoolManager.GetPooledConnection(SqlConnectionString options, Boolean& isInTransaction)
System.Data.SqlClient.SqlConnection.Open()
register.WebForm1.Next1_Click(Object sender, EventArgs e) in c:\inetpub\wwwroot\register\webform1.aspx.cs:106
System.Web.UI.WebControls.Button.OnClick(EventArgs e)
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
System.Web.UI.Page.ProcessRequestMain()
--------------------------------------------------------------------------------
版本信息: Microsoft .NET Framework 版本:1.1.4322.573; ASP.NET 版本:1.1.4322.573
能不能帮小弟解决一下啊!谢谢各位大侠了!!!
看看系统怎么生成的链接串,你这不是没权限吗,
给asp.net用户权限,或者用有权用户