“/”应用程序中的服务器错误。

用户 'sa' 登录失败。

说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.Data.SqlClient.SqlException: 用户 'sa' 登录失败。

源错误:


行 43:         {
行 44:             BLL.Category categoryBLL = new BLL.Category();
行 45:             this.R_SerCategory.DataSource = categoryBLL.Get("change=3 order by sort asc,id desc");
行 46:             this.R_SerCategory.DataBind();
行 47: 

源文件: c:\网站\rzt_web\job-news-details.aspx.cs    行: 45

堆栈跟踪:


[SqlException (0x80131904): 用户 'sa' 登录失败。]
   System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager) +1524
   System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions) +467
   System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions) +70
   System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection) +940
   System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection) +111
   System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection) +1567
   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
   DBUtility.DbHelperSQL.PrepareCommand(SqlCommand cmd, SqlConnection conn, SqlTransaction trans, CommandType cmdType, String cmdText, SqlParameter[] parameters) in d:\web\2020\DBUtility\DbHelperSQL.cs:354
   DBUtility.DbHelperSQL.ExecuteReader(String cmdText, CommandType cmdType, SqlParameter[] parameters) in d:\web\2020\DBUtility\DbHelperSQL.cs:257

[Exception: 用户 'sa' 登录失败。]
   DBUtility.DbHelperSQL.ExecuteReader(String cmdText, CommandType cmdType, SqlParameter[] parameters) in d:\web\2020\DBUtility\DbHelperSQL.cs:272
   DBUtility.DbHelperSQL.ExecuteStoredProcReader(String cmdText, SqlParameter[] parameters) in d:\web\2020\DBUtility\DbHelperSQL.cs:137
   SQLServerDAL.Category.Get(Int32 topClause, String whereClause) in d:\web\2020\SQLServerDAL\Category.cs:277

[Exception: 用户 'sa' 登录失败。]
   SQLServerDAL.Category.Get(Int32 topClause, String whereClause) in d:\web\2020\SQLServerDAL\Category.cs:301
   SQLServerDAL.Category.Get(String whereClause) in d:\web\2020\SQLServerDAL\Category.cs:312
   BLL.Category.Get(String whereClause) in d:\web\2020\BLL\Category.cs:183

[Exception: 用户 'sa' 登录失败。]
   BLL.Category.Get(String whereClause) in d:\web\2020\BLL\Category.cs:187
   job_news_details.Page_Load(Object sender, EventArgs e) in c:\网站\rzt_web\job-news-details.aspx.cs:45
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.8.4465.0
Baidu
sogou