- 分享
- 0
- 人气
- 0
- 主题
- 10
- 帖子
- 30
- UID
- 445283
- 积分
- 24
- 阅读权限
- 11
- 注册时间
- 2011-9-22
- 最后登录
- 2012-10-15
- 在线时间
- 36 小时
|
我有一份asp.net的project里面有一个ASPNETDB.MDF和一份database.sql的script, 我用visual web developer 2008打开在browser来testing,但是我有加入existing aspnetdb.mdf但是没有run sql script的问题,帮忙一下,谢谢。那你们是怎样打开asp.net open source在visual web developer 2008?
Server Error in '/' Application.
Cannot open database "esis_db" requested by the login. The login failed.
Login failed for user 'user-PC\user'.
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: Cannot open database "esis_db" requested by the login. The login failed.
Login failed for user 'user-PC\user'.
Source Error:
Line 26: Dim dt As New DataTable()
Line 27: Dim adap As New SqlDataAdapter()
Line 28: conn.Open()
Line 29: cmd = conn.CreateCommand
Line 30: cmd.CommandText = strSQL
Source File: E:\MyPsmProject\Inventory system lipe\CHJ_ESIS\chj_esis\chj_esis\login.aspx.vb Line: 28
Stack Trace:
[SqlException (0x80131904): Cannot open database "esis_db" requested by the login. The login failed.
Login failed for user 'user-PC\user'.]
System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +87
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +207
System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +2422
System.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(Boolean enlistOK) +36
System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject) +234
System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart) +367
System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance) +234
System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) +217
System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection) +492
System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options) +29
System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject) +437
System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject) +70
System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +449
System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +103
System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +116
System.Data.SqlClient.SqlConnection.Open() +154
chj_esis.login.connectDB(String id) in E:\MyPsmProject\Inventory system lipe\CHJ_ESIS\chj_esis\chj_esis\login.aspx.vb:28
chj_esis.login.btnLogin_Click(Object sender, EventArgs e) in E:\MyPsmProject\Inventory system lipe\CHJ_ESIS\chj_esis\chj_esis\login.aspx.vb:16
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +107
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +110
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3436
Version Information: Microsoft .NET Framework Version:2.0.50727.5448; ASP.NET Version:2.0.50727.5420 |
|