Server Error in '/' Application.

用户 'b2buser' 登录失败。

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: 用户 'b2buser' 登录失败。

Source Error:


Line 24:         if (!IsPostBack)
Line 25:         {
Line 26:             model_picdetail = Img_infoBll.GetModel(_id);
Line 27:             model_picdetail.sort += 1;
Line 28:             Img_infoBll.Update(model_picdetail);

Source File: d:\web\ooff.net\picDetail.aspx.cs    Line: 26

Stack Trace:


[SqlException (0x80131904): 用户 'b2buser' 登录失败。]
   System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection) +353
   System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection) +118
   System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection) +268
   System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) +315
   System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry) +128
   System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry) +265
   System.Data.SqlClient.SqlConnection.Open() +133
   DB_Img.Tool.DbHelper.PrepareCommand(SqlCommand cmd, SqlConnection conn, SqlTransaction trans, String cmdText, SqlParameter[] cmdParms) +123
   DB_Img.Tool.DbHelper.Query(String SQLString, SqlParameter[] cmdParms) +185
   DB_Img.DAL.Img_info.GetModel(Int32 id) in E:\work\WEB\ooff.net\DB_Common\DB_Img_DAL\Img_info.cs:232
   DB_Img.BLL.Img_info.GetModel(Int32 id) in E:\work\WEB\ooff.net\DB_Common\DB_Img_BLL\Img_info.cs:72
   picDetail.Page_Load(Object sender, EventArgs e) in d:\web\ooff.net\picDetail.aspx.cs:26
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1607


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.3928.0