الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

بخصوص إتصال ال Login

بدأه صقر169 في 27 يناير 2009 · 6 رد · 1,285 مشاهدة · في ASP.NET
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

السلام عليكــم ورحمـة الله وبركاتــه

أنا رفعت موقعي على المستضيف، وعملت ربط لقاعدة البيانات في المستضيف وتمت العملية بنجاح والموقع شغال زي الحلاوة،

عند دخول صفحت الـ التسجيل Login وأدخل مستخدم وكلمة سر يعطيني خطاء في إتصال في قاعدة البيانات. مع العلم اني استخدم ميزة الـ Login الموجودة في Visual Studio 2008 وهو الي يعمل قاعدة بيانات السكيورتي. ويضعها في App_Data

ما أعرف إذا فيه كود اسويه على web.config ، مع العلم ان الموقع يعمل على جهازي الشخصي بأكمل وجه

راجيا من الله تعالى أن يوفقنا لما يحبه ويرضاه

و السلام عليكــم ورحمـة الله وبركاتــه

#2

تفضل علينا برسالة الخطأ

اللهم أطل عمري وأحسن عملي واختم بالشهادة أجلي

#4

بداية رسالة الخطأ السابقة تخبرك ان اظهار الاخطاء غير مفعل لذلك قم بالتعديل في web.config لاظهار الخطآ

راجع الرابط التالي <a href="http://www.codeverge.net/ng.asp-net-forum.security/membership-provider-connection-string" target="_blank">http://www.codeverge.net/ng.asp-net-forum....nnection-string</a>

و ايضا http://aspnet.4guysfromrolla.com/articles/120705-1.aspx

تم تعديل هذه المشاركة بواسطة AhmedElbaz في 29 يناير 2009 في 07:04

#5

شكرا اخي أحمد على الإستجابة

شوف الصورة الخطاء

مشاهدة الصور

عندي سؤال عن هذا الكود ايش ممكن اغير فيه

  1.  
  2. <membership defaultProvider="MySqlMembershipProvider">
  3. <providers>
  4. <clear />
  5. <add connectionStringName="mssql500.opentransfer.com" enablePasswordRetrieval="false"
  6. enablePasswordReset="true" requiresQuestionAndAnswer="true" applicationName="/"
  7. requiresUniqueEmail="false" passwordFormat="Hashed" maxInvalidPasswordAttempts="5"
  8. passwordAttemptWindow="10" minRequiredNonalphanumericCharacters="0"
  9. passwordStrengthRegularExpression="" name="MyMembershipProvider"
  10. type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=n
    eutral, PublicKeyToken=b03f5f7f11d50a3a" />
  11. </providers>
  12. </membership>
  13.  
  14.  
  15.  

post-34744-1233211688_thumb.gif

#6

اخي احمد أنا بإنتظارك ردك ، أو اي أحد عنده إجابة ممكن تنفع للمشكلة

#7

أيضاً حاولت اني الـ membership من الويب كونفيق وصار تجي الرسالة هذي

  1.  
  2. Server Error IN '/truth' Application.
  3. --------------------------------------------------------------------------------
  4.  
  5. A network-related OR instance-specific error occurred while establishing a connection TO SQL Se
    rver. The server was NOT found OR was NOT accessible. Verify that the instance name IS correct
    and that SQL Server IS configured TO allow remote connections. (provider: SQL Network Interface
    s, error: 26 - Error Locating Server/Instance Specified)
  6. Description: An unhandled exception occurred during the execution of the current web request. P
    lease review the stack trace FOR more information about the error AND WHERE it originated IN th
    e code.
  7.  
  8. Exception Details: System.DATA.SqlClient.SqlException: A network-related OR instance-specific e
    rror occurred while establishing a connection TO SQL Server. The server was NOT found OR was no
    t accessible. Verify that the instance name IS correct AND that SQL Server IS configured TO all
    ow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Ins
    tance Specified)
  9.  
  10. Source Error:
  11.  
  12. An unhandled exception was generated during the execution of the current web request. Informati
    on regarding the origin AND location of the exception can be IDENTIFIED USING the exception sta
    ck trace below.
  13.  
  14. Stack Trace:
  15.  
  16.  
  17. [SqlException (0x80131904): A network-related OR instance-specific error occurred while establi
    shing a connection TO SQL Server. The server was NOT found OR was NOT accessible. Verify that t
    he instance name IS correct AND that SQL Server IS configured TO allow remote connections. (pro
    vider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)]
  18. System.DATA.SqlClient.SqlInternalConnection.OnError(SqlException exception, BOOLEAN breakCon
    nection) +4844759
  19. System.DATA.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +194
  20. System.DATA.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds conn
    Handler, BOOLEAN ignoreSniOpenTimeout, Int64 timerExpire, BOOLEAN encrypt, BOOLEAN trustServerC
    ert, BOOLEAN integratedSecurity, SqlConnection owningObject) +4858065
  21. System.DATA.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String
    newPassword, BOOLEAN ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject) +90
  22. System.DATA.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPasswo
    rd, BOOLEAN redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionO
    ptions, Int64 timerStart) +376
  23. System.DATA.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, S
    qlConnectionString connectionOptions, String newPassword, BOOLEAN redirectedUserInstance) +221
  24. System.DATA.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlC
    onnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection ownin
    gObject, BOOLEAN redirectedUserInstance) +189
  25. System.DATA.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Obj
    ect poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection) +4859187
  26. System.DATA.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConne
    ction, DbConnectionPool pool, DbConnectionOptions options) +31
  27. System.DATA.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject) +433
  28. System.DATA.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject) +66
  29. System.DATA.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +499
  30. System.DATA.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +6
    5
  31. System.DATA.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbC
    onnectionFactory connectionFactory) +117
  32. System.DATA.SqlClient.SqlConnection.Open() +122
  33. System.Web.DataAccess.SqlConnectionHolder.Open(HttpContext context, BOOLEAN revertImpersonat
    e) +87
  34. System.Web.DataAccess.SqlConnectionHelper.GetConnection(String connectionString, BOOLEAN rev
    ertImpersonation) +221
  35. System.Web.Security.SqlMembershipProvider.GetPasswordWithFormat(String username, BOOLEAN upd
    ateLastLoginActivityDate, Int32& STATUS, String& password, Int32& passwordFormat, String& passw
    ordSalt, Int32& failedPasswordAttemptCount, Int32& failedPasswordAnswerAttemptCount, Boolean& i
    sApproved, DateTime& lastLoginDate, DateTime& lastActivityDate) +815
  36. System.Web.Security.SqlMembershipProvider.CheckPassword(String username, String password, Bo
    olean updateLastLoginActivityDate, BOOLEAN failIfNotApproved, String& salt, Int32& passwordForm
    at) +105
  37. System.Web.Security.SqlMembershipProvider.CheckPassword(String username, String password, Bo
    olean updateLastLoginActivityDate, BOOLEAN failIfNotApproved) +42
  38. System.Web.Security.SqlMembershipProvider.ValidateUser(String username, String password) +78
  39. System.Web.UI.WebControls.Login.AuthenticateUsingMembershipProvider(AuthenticateEventArgs e)
    +60
  40. System.Web.UI.WebControls.Login.OnAuthenticate(AuthenticateEventArgs e) +119
  41. System.Web.UI.WebControls.Login.AttemptLogin() +115
  42. System.Web.UI.WebControls.Login.OnBubbleEvent(Object source, EventArgs e) +101
  43. System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37
  44. System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) +118
  45. System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +166
  46. System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(Stri
    ng eventArgument) +10
  47. System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgum
    ent) +13
  48. System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
  49. System.Web.UI.Page.ProcessRequestMain(BOOLEAN includeStagesBeforeAsyncPoint, BOOLEAN include
    StagesAfterAsyncPoint) +1565
  50.  
  51.  
  52.  
  53.  

post-34744-1233440148.gif

مواضيع مشابهة