首页上一页 1 下一页尾页 3 条记录 1/1页
asp.net 项目开发全程实录 第一章 IIS调试出错如下 (但vs里运行(F5)就可以,还有点发布信息出来乱码,其它栏目可以)
发表在ASP.NET图书答疑
2010-05-21
是否精华
是
否
版块置顶:
是
否
asp.net 项目开发全程实录 第一章 IIS调试出错如下 (但vs里运行(F5)就可以,还有点发布信息出来乱码,其它栏目可以)
“/”应用程序中的服务器错误。
--------------------------------------------------------------------------------
无法打开登录所请求的数据库 "DB_SIS"。登录失败。
用户 'COMPUTERNAME\ASPNET' 登录失败。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
异常详细信息: System.Data.SqlClient.SqlException: 无法打开登录所请求的数据库 "DB_SIS"。登录失败。
用户 'COMPUTERNAME\ASPNET' 登录失败。
源错误:
行 37: }
行 38: if (con.State == System.Data.ConnectionState.Closed)
[font color=#FF0000]行 39: con.Open();[/font]
行 40:
行 41: }
源文件: d:\testsite\TM\01\SIS\App_Code\DataBase.cs 行: 39
堆栈跟踪:
[SqlException (0x80131904): 无法打开登录所请求的数据库 "DB_SIS"。登录失败。
用户 'COMPUTERNAME\ASPNET' 登录失败。]
System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +800131
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +186
System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +1932
System.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(Boolean enlistOK) +33
System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject) +172
System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart) +381
System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance) +181
System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) +173
System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection) +357
System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options) +30
System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject) +424
System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject) +66
System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +494
System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +82
System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +105
System.Data.SqlClient.SqlConnection.Open() +111
DataBase.Open() in d:\testsite\TM\01\SIS\App_Code\DataBase.cs:39
DataBase.CreateDataAdaper(String procName, SqlParameter[] prams) in d:\testsite\TM\01\SIS\App_Code\DataBase.cs:186
DataBase.RunProcReturn(String procName, String tbName) in d:\testsite\TM\01\SIS\App_Code\DataBase.cs:167
Operation.SelectLeaguerInfo(Boolean All, String infoType, Int32 top) in d:\testsite\TM\01\SIS\App_Code\Operation.cs:232
_Default.Page_Load(Object sender, EventArgs e) in d:\testsite\TM\01\SIS\Default.aspx.cs:19
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +33
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436
“/”应用程序中的服务器错误。
--------------------------------------------------------------------------------
无法打开登录所请求的数据库 "DB_SIS"。登录失败。
用户 'COMPUTERNAME\ASPNET' 登录失败。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
异常详细信息: System.Data.SqlClient.SqlException: 无法打开登录所请求的数据库 "DB_SIS"。登录失败。
用户 'COMPUTERNAME\ASPNET' 登录失败。
源错误:
行 37: }
行 38: if (con.State == System.Data.ConnectionState.Closed)
[font color=#FF0000]行 39: con.Open();[/font]
行 40:
行 41: }
源文件: d:\testsite\TM\01\SIS\App_Code\DataBase.cs 行: 39
堆栈跟踪:
[SqlException (0x80131904): 无法打开登录所请求的数据库 "DB_SIS"。登录失败。
用户 'COMPUTERNAME\ASPNET' 登录失败。]
System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +800131
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +186
System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +1932
System.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(Boolean enlistOK) +33
System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject) +172
System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart) +381
System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance) +181
System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) +173
System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection) +357
System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options) +30
System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject) +424
System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject) +66
System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +494
System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +82
System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +105
System.Data.SqlClient.SqlConnection.Open() +111
DataBase.Open() in d:\testsite\TM\01\SIS\App_Code\DataBase.cs:39
DataBase.CreateDataAdaper(String procName, SqlParameter[] prams) in d:\testsite\TM\01\SIS\App_Code\DataBase.cs:186
DataBase.RunProcReturn(String procName, String tbName) in d:\testsite\TM\01\SIS\App_Code\DataBase.cs:167
Operation.SelectLeaguerInfo(Boolean All, String infoType, Int32 top) in d:\testsite\TM\01\SIS\App_Code\Operation.cs:232
_Default.Page_Load(Object sender, EventArgs e) in d:\testsite\TM\01\SIS\Default.aspx.cs:19
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +33
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436