2011-05-31 255 views
0

我一直有下面的問題,但我仍然沒有花費很長時間谷歌後的解決方案。用戶登錄失敗

登錄用戶'FrienDev'失敗。

描述:在執行 當前Web請求期間發生未處理的異常 。請查看 堆棧跟蹤以瞭解有關 錯誤的更多信息,以及它源自 的代碼。

異常詳細信息: System.Data.SqlClient.SqlException: 登錄用戶'FrienDev'失敗。

堆棧跟蹤:

[SQLEXCEPTION(0x80131904):用戶登錄失敗 'FrienDev'] System.Data.SqlClient.SqlInternalConnection.OnError(SqlException異常,布爾breakConnection)4849719 System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)194 System.Data.SqlClient.TdsParser.Run(runBehavior runBehavior,SqlCommand的cmdHandler,SqlDataReader的數據流,BulkCopySimpleResultSet bulkCopyHandler,TdsParserStateObject stateObj)2392 System.Data.SqlClient的。 SqlInternalConnect System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo,String newPassword,Boolean ignoreSniOpenTimeout,Int64 timerExpire,SqlConnection owningObject)+144 System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host ,String newPassword,Boolean redirectedUserInstance,SqlConnection owningObject,SqlConnectionString connectionOptions,Int64 timerStart)+342 System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject,SqlConnectionString connectionOptions,String newPassword,Boolean redirectedUserInstance)+221 System.Data.SqlClient。 SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity標識,SqlConnectionString connectionOptions,Object providerInfo,String newPassword,SqlConnection owningObject,Boolean重定向用戶實例)+189 System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions選項,對象poolGroupProviderInfo,池類DBConnectionPool,的DbConnection owningConnection)+185 System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(的DbConnection owningConnection,池類DBConnectionPool,DbConnectionOptions選項)+31 系統。 Data.ProviderBase.DbConnectionPool.CreateObject(的DbConnection owningObject)433 System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(的DbConnection owningObject)66 System.Data.ProviderBase.DbConnectionPool.GetConnection(的DbConnection owningObject)499 System.Data。 ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)+65 System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection out erConnection,DbConnectionFactory connectionFactory的)117 System.Data.SqlClient.SqlConnection.Open()122 System.Data.Linq.SqlClient.SqlConnectionManager.UseConnection(IConnectionUser用戶)44 System.Data.Linq.SqlClient.SqlProvider。 get_IsSqlCe()+45 System.Data.Linq.SqlClient.SqlProvider.InitializeProviderMode()+20 System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(表達式查詢)+57 System.Data.Linq.DataQuery 1.System.Collections.Generic.IEnumerable<T>.GetEnumerator() +35 System.Linq.Enumerable.SingleOrDefault(IEnumerable 1 source)+221 FrienDev.BusinessRules.UserRules。GetCurrentUser()594 FrienDev.BusinessRules.UserRules.UpdateUserLoginInfomation()66 FrienDev.BusinessRules.OnlineRules.UserLogin(字符串userid)115 HandlerPage.Page_Load(對象發件人,EventArgs e)在d:\ TEST \ FrienDevApps \ (System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp,Object o,Object t,EventArgs e)+14 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)+35 System.Web.UI.Control.OnLoad(EventArgs e)+99 System.Web.UI.Control.LoadRecursive()+50 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint,Boolean includeStagesAfterAsyncPoint)+627

有人有任何線索嗎? 請幫忙!

回答

0

你想做什麼?什麼代碼指令給你這個錯誤?你能發佈你的代碼嗎?

沒有其他信息我認爲你沒有權限連接到數據庫。檢查你的連接字符串和用戶憑證。