sa默认数据库被分离 无法打开用户默认数据库 登录失败

展开阅读全文

[在线等]无法打开用户默认数据库登录失败

02-05

“/”应用程序中的服务器错误。rn--------------------------------------------------------------------------------rnrn无法打开用户默认数据库。登录失败。rn用户 'TJU-57C4232FC30\ASPNET' 登录失败。 rn说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 rnrn异常详细信息: System.Data.SqlClient.SqlException: 无法打开用户默认数据库。登录失败。rn用户 'TJU-57C4232FC30\ASPNET' 登录失败。rnrn源错误: rnrnrn行 26: return;rn行 27: rn行 28: if (Membership.ValidateUser(userName, userPass))rn行 29: rn行 30: FormsAuthentication.RedirectFromLoginPage(userName, false);rn rnrn源文件: d:\QAOA\R_Index.aspx.cs 行: 28 rnrn堆栈跟踪: rnrnrn[SqlException (0x80131904): 无法打开用户默认数据库。登录失败。rn用户 'TJU-57C4232FC30\ASPNET' 登录失败。]rn System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +735059rn System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +188rn System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +1838rn System.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(Boolean enlistOK) +33rn System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance) +628rn System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) +170rn System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection) +359rn System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options) +28rn System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject) +424rn System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject) +66rn System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +496rn System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +82rn System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +105rn System.Data.SqlClient.SqlConnection.Open() +111rn System.Web.DataAccess.SqlConnectionHolder.Open(HttpContext context, Boolean revertImpersonate) +84rn System.Web.DataAccess.SqlConnectionHelper.GetConnection(String connectionString, Boolean revertImpersonation) +197rn System.Web.Security.SqlMembershipProvider.GetPasswordWithFormat(String username, Boolean updateLastLoginActivityDate, Int32& status, String& password, Int32& passwordFormat, String& passwordSalt, Int32& failedPasswordAttemptCount, Int32& failedPasswordAnswerAttemptCount, Boolean& isApproved, DateTime& lastLoginDate, DateTime& lastActivityDate) +1121rn System.Web.Security.SqlMembershipProvider.CheckPassword(String username, String password, Boolean updateLastLoginActivityDate, Boolean failIfNotApproved, String& salt, Int32& passwordFormat) +105rn System.Web.Security.SqlMembershipProvider.CheckPassword(String username, String password, Boolean updateLastLoginActivityDate, Boolean failIfNotApproved) +42rn System.Web.Security.SqlMembershipProvider.ValidateUser(String username, String password) +83rn System.Web.Security.Membership.ValidateUser(String username, String password) +43rn R_Index.ImageButton1_Click(Object sender, ImageClickEventArgs e) in d:\QAOA\R_Index.aspx.cs:28rn System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +105rn System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +115rn System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7rn System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11rn System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33rn System.Web.UI.Page.ProcessRequestMain(Boolean rn rnrn是数据库连接有问题吗.还是怎么回事?老师记着催命啊,请高手大哥伸出您的援助之手,我这里的橄榄枝替你准备了一篮子.^_^rn 论坛

无法打开登录所请求的数据库 "db_VOD"。sa登录失败

06-15

“/VOD”应用程序中的服务器错误。rn--------------------------------------------------------------------------------rnrn无法打开登录所请求的数据库 "db_VOD"。登录失败。rn用户 'sa' 登录失败。 rn说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 rnrn异常详细信息: System.Data.SqlClient.SqlException: 无法打开登录所请求的数据库 "db_VOD"。登录失败。rn用户 'sa' 登录失败。rnrn源错误: rnrn只有在调试模式下进行编译时,生成此未处理异常的源代码才会显示出来。若要启用此功能,请执行以下步骤之一,然后请求 URL: rnrn1. 在产生错误的文件的顶部添加一条“Debug=true”指令。例如: rnrn <%@ Page Language="C#" Debug="true" %>rnrn或:rnrn2. 将以下的节添加到应用程序的配置文件中:rnrnrn rn rn rnrnrn请注意,第二个步骤将使给定应用程序中的所有文件在调试模式下进行编译;第一个步骤仅使该特定文件在调试模式下进行编译。rnrn重要事项: 以调试模式运行应用程序一定会产生内存/性能系统开销。在部署到生产方案之前,应确保应用程序调试已禁用。 rnrn堆栈跟踪: rnrnrn[SqlException (0x80131904): 无法打开登录所请求的数据库 "db_VOD"。登录失败。rn用户 'sa' 登录失败。]rn System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +800131rn System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +186rn System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +1932rn System.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(Boolean enlistOK) +33rn System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject) +172rn System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart) +381rn System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance) +181rn System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) +173rn System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection) +357rn System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options) +30rn System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject) +424rn System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject) +66rn System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +494rn System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +82rn System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +105rn System.Data.SqlClient.SqlConnection.Open() +111rn System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +121rn System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +137rn System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable) +83rn BaseClass.SqlDs(String strsql, String strtbl) +103rn _Default.Page_Load(Object sender, EventArgs e) +51rn System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15rn System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +33rn System.Web.UI.Control.OnLoad(EventArgs e) +99rn System.Web.UI.Control.LoadRecursive() +47rn System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436rnrn rnrnrn--------------------------------------------------------------------------------rn版本信息: Microsoft .NET Framework 版本:2.0.50727.1433; ASP.NET 版本:2.0.50727.1433 论坛

无法打开登录所请求的数据库 "xxx"。登录失败用户 'sa' 登录失败

07-20

SA的帐号密码本地可以登录。。。rnrnrn------------------------------------------报错提示rn[code=text] rnrn无法打开登录所请求的数据库 "yrdddp"。登录失败。rn用户 'sa' 登录失败。 rn 说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 rnrn 异常详细信息: System.Data.SqlClient.SqlException: 无法打开登录所请求的数据库 "yrdddp"。登录失败。rn用户 'sa' 登录失败。rnrn源错误: rnrnrn执行当前 Web 请求期间生成了未经处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。 rnrn堆栈跟踪: rnrnrnrn[SqlException (0x80131904): 无法打开登录所请求的数据库 "yrdddp"。登录失败。rn用户 'sa' 登录失败。]rn 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) +1394rn System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions) +1120rn System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions) +70rn System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection) +910rn System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection) +114rn System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection) +1637rn System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection) +117rn System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection) +267rn System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) +318rn System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry) +211rn System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry) +393rn System.Data.SqlClient.SqlConnection.Open() +122rn System.Data.EntityClient.EntityConnection.OpenStoreConnectionIf(Boolean openCondition, DbConnection storeConnectionToOpen, DbConnection originalConnection, String exceptionCode, String attemptedOperation, Boolean& closeStoreConnectionOnFailure) +41rnrn[EntityException: 基础提供程序在 Open 上失败。]rn System.Data.EntityClient.EntityConnection.OpenStoreConnectionIf(Boolean openCondition, DbConnection storeConnectionToOpen, DbConnection originalConnection, String exceptionCode, String attemptedOperation, Boolean& closeStoreConnectionOnFailure) +212rn System.Data.EntityClient.EntityConnection.Open() +138rn System.Data.Objects.ObjectContext.EnsureConnection() +84rn System.Data.Objects.ObjectContext.ExecuteStoreQueryInternal(String commandText, String entitySetName, MergeOption mergeOption, Object[] parameters) +109rn web.index.Page_Load(Object sender, EventArgs e) +557rn System.Web.UI.Control.OnLoad(EventArgs e) +109rn System.Web.UI.Control.LoadRecursive() +68rn System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4498rnrn rnrnrn[/code]rnrnrnrnrn========================================================================rn[b]-------Web.config[/b]rnrn[code=text]rnrnrnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrn rn rn rn rn rnrnrn[/code] 论坛

没有更多推荐了,返回首页