Server Error in '/Stores' Application.
--------------------------------------------------------------------------------用户 'PINGDANYANG\ASPNET' 登录失败。
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: 用户 'PINGDANYANG\ASPNET' 登录失败。Source Error:
Line 31: SqlConnection myConnection=new SqlConnection(constr);
Line 32: SqlCommand myCommand=new SqlCommand(sqlstr1,myConnection);
Line 33: myConnection.Open();
Line 34: Message.Text="";
Line 35: try{myCommand.ExecuteNonQuery();}
Source File: C:\Inetpub\wwwroot\Stores\RegCustomer.aspx Line: 33 Stack Trace:
[SqlException: 用户 'PINGDANYANG\ASPNET' 登录失败。]
System.Data.SqlClient.ConnectionPool.GetConnection(Boolean& isInTransaction) +484
System.Data.SqlClient.SqlConnectionPoolManager.GetPooledConnection(SqlConnectionString options, Boolean& isInTransaction) +372
System.Data.SqlClient.SqlConnection.Open() +384
ASP.RegCustomer_aspx.Submit_Click(Object sender, EventArgs e) in C:\Inetpub\wwwroot\Stores\RegCustomer.aspx:33
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
<add key="connectionstring"
怎么回事,
我在Web.config.中编写了.
<add key="connectionstring" value="server=PINGDANYANG;trusted_connection=true;database=Stores"/>
我的SQL server服务器为PINGDANYANG.
应该怎么改呀!
--------------------------------------------------------------------------------用户 'PINGDANYANG\ASPNET' 登录失败。
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: 用户 'PINGDANYANG\ASPNET' 登录失败。Source Error:
Line 31: SqlConnection myConnection=new SqlConnection(constr);
Line 32: SqlCommand myCommand=new SqlCommand(sqlstr1,myConnection);
Line 33: myConnection.Open();
Line 34: Message.Text="";
Line 35: try{myCommand.ExecuteNonQuery();}
Source File: C:\Inetpub\wwwroot\Stores\RegCustomer.aspx Line: 33 Stack Trace:
[SqlException: 用户 'PINGDANYANG\ASPNET' 登录失败。]
System.Data.SqlClient.ConnectionPool.GetConnection(Boolean& isInTransaction) +484
System.Data.SqlClient.SqlConnectionPoolManager.GetPooledConnection(SqlConnectionString options, Boolean& isInTransaction) +372
System.Data.SqlClient.SqlConnection.Open() +384
ASP.RegCustomer_aspx.Submit_Click(Object sender, EventArgs e) in C:\Inetpub\wwwroot\Stores\RegCustomer.aspx:33
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
<add key="connectionstring"
怎么回事,
我在Web.config.中编写了.
<add key="connectionstring" value="server=PINGDANYANG;trusted_connection=true;database=Stores"/>
我的SQL server服务器为PINGDANYANG.
应该怎么改呀!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货