PDA

View Full Version : مشکل در ارتباط با دیتابی در vdwhosting.net



mp2009
دوشنبه 30 مهر 1386, 22:58 عصر
سلام
دوستان اگه میشه کمک کنند
ببینید من دیتابیسم رو اتچ کردم

کتنکشن استرینگ هم اینجوری ست کردم




<addname="ConnectionString"connectionString="data source='sql1.vwdhosting.net,1439';User ID='pejvak-2';Password=1234567;database='pejvak-2'"providerName="System.Data.SqlClient"/>

همون connection string ی که خودش داده

ولی وقتی میخام لوگین کنم این ارور رو میده




Server Error in '/' Application.

Cannot open database "pejvak-2" requested by the login. The login failed.
Login failed for user 'pejvak-2'.

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 "pejvak-2" requested by the login. The login failed.
Login failed for user 'pejvak-2'.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:

[SqlException (0x80131904): Cannot open database "pejvak-2" requested by the login. The login failed.Login failed for user 'pejvak-2'.] System.Data.SqlClient.SqlInternalConnection.OnErro r(SqlException exception, Boolean breakConnection) +739123 System.Data.SqlClient.TdsParser.ThrowExceptionAndW arning(TdsParserStateObject stateObj) +188 System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +1956 System.Data.SqlClient.SqlInternalConnectionTds.Com pleteLogin(Boolean enlistOK) +33 System.Data.SqlClient.SqlInternalConnectionTds.Att emptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject) +170 System.Data.SqlClient.SqlInternalConnectionTds.Log inNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart) +349 System.Data.SqlClient.SqlInternalConnectionTds.Ope nLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance) +181 System.Data.SqlClient.SqlInternalConnectionTds..ct or(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) +170 System.Data.SqlClient.SqlConnectionFactory.CreateC onnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection) +359 System.Data.ProviderBase.DbConnectionFactory.Creat ePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options) +28 System.Data.ProviderBase.DbConnectionPool.CreateOb ject(DbConnection owningObject) +424 System.Data.ProviderBase.DbConnectionPool.UserCrea teRequest(DbConnection owningObject) +66 System.Data.ProviderBase.DbConnectionPool.GetConne ction(DbConnection owningObject) +496 System.Data.ProviderBase.DbConnectionFactory.GetCo nnection(DbConnection owningConnection) +82 System.Data.ProviderBase.DbConnectionClosed.OpenCo nnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +105 System.Data.SqlClient.SqlConnection.Open() +111 System.Web.DataAccess.SqlConnectionHolder.Open(Htt pContext context, Boolean revertImpersonate) +84 System.Web.DataAccess.SqlConnectionHelper.GetConne ction(String connectionString, Boolean revertImpersonation) +197 System.Web.Security.SqlMembershipProvider.GetPassw ordWithFormat(String username, Boolean updateLastLoginActivityDate, Int32& status, String& password, Int32& passwordFormat, String& passwordSalt, Int32& failedPasswordAttemptCount, Int32& failedPasswordAnswerAttemptCount, Boolean& isApproved, DateTime& lastLoginDate, DateTime& lastActivityDate) +1121 System.Web.Security.SqlMembershipProvider.CheckPas sword(String username, String password, Boolean updateLastLoginActivityDate, Boolean failIfNotApproved, String& salt, Int32& passwordFormat) +105 System.Web.Security.SqlMembershipProvider.CheckPas sword(String username, String password, Boolean updateLastLoginActivityDate, Boolean failIfNotApproved) +42 System.Web.Security.SqlMembershipProvider.Validate User(String username, String password) +83 System.Web.UI.WebControls.Login.OnAuthenticate(Aut henticateEventArgs e) +160 System.Web.UI.WebControls.Login.AttemptLogin() +105 System.Web.UI.WebControls.Login.OnBubbleEvent(Obje ct source, EventArgs e) +99 System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +35 System.Web.UI.WebControls.Button.OnCommand(Command EventArgs e) +115 System.Web.UI.WebControls.Button.RaisePostBackEven t(String eventArgument) +163 System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePostBackEvent(String eventArgument) +7 System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler sourceControl, String eventArgument) +11 System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +33 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint



دوستان اگه میشه کمک کنند دیگه اعصابم رو خورد کرده

mp2009
سه شنبه 01 آبان 1386, 10:10 صبح
از دوستان و مدیران محترم خواهش میکنم اگر کسی میدونه جواب بده
خیلی عجله دارم کارم گیره

abadanboy
سه شنبه 01 آبان 1386, 10:14 صبح
یوزر یا پسوردت اشتباه وارد شده یا اسم دیتابیس رو اشتباه می زنی

به صورت معمولی تو یه sqlconnection بزار اگه همین ارور رو داد مطمئن باش همونیه که گفتم اگه نداد مشکل از web.config هست

mp2009
سه شنبه 01 آبان 1386, 10:22 صبح
]چشم تست میکنم و خبر میدم

mp2009
سه شنبه 01 آبان 1386, 17:22 عصر
دوستان کار نمیکنه تورو خدا یکی کمک کنه

abadanboy
سه شنبه 01 آبان 1386, 18:17 عصر
تو چی کار نمیکنه یه خورده واضح توضیح بده تو sqlconnection هم درست کار نمی کنه یا تو web.config فقط

abadanboy
سه شنبه 01 آبان 1386, 18:28 عصر
Server Error in '/' Application.

Cannot open database "pejvak-2" requested by the login. The login failed.
Login failed for user 'pejvak-2'.




[/quote]

mp2009
سه شنبه 01 آبان 1386, 20:48 عصر
دوست عزیز مشکلم حل شد
ست گلت درد نکنه