عند تعاملي مع الـــــــ loggin وعند إنشاء مستخدم جديد تظهر لي الرسالة التالية :
Password length minimum: 7. Non-alphanumeric characters required: 1.
ولم أجد حلاً لها ....
عند تعاملي مع الـــــــ loggin وعند إنشاء مستخدم جديد تظهر لي الرسالة التالية :
Password length minimum: 7. Non-alphanumeric characters required: 1.
ولم أجد حلاً لها ....
اهلا اخي
ضف هذه الاسطر ضمن ملف web.config تحت الـtag او العقدة الـ<system.web> كالتالي
<system.web> <membership> <providers> <remove name="AspNetSqlMembershipProvider"/> <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="LocalSqlServer" enablePasswordRetrieval="true" enablePasswordReset="true" requiresQuestionAndAnswer="false" applicationName="/" requiresUniqueEmail="true" passwordFormat="Encrypted" maxInvalidPasswordAttempts="5" passwordAttemptWindow="10" passwordStrengthRegularExpression="" minRequiredPasswordLength="4" minRequiredNonalphanumericCharacters="0"/> </providers> </membership>
او تستطيع ان تضيفها الى ملف "machine.config"
الموجود ضمن المسار التالي
c:\<Windows>\Microsoft.NET\Framework\<Version>\Config
بشكل مباشر
تم تعديل هذه المشاركة بواسطة محمد سماقية في 5 مايو 2008 في 09:45
-----------------------------------------------------------------------------------------------------------------------------
ـــــــــــــــــــــــــــــــــــــــــــــــــــــــــ
Mohammad Sonaiea
عملت ما قلته لي أخي لكن ظهر لي التاي:
Server Error in '/WebSite3' Application. -------------------------------------------------------------------------------- You must specify a non-autogenerated machine key to store passwords in the encrypted format. Either specify a different passwordFormat, or change the machineKey configuration to use a non-autogenerated decryption key. 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.Configuration.Provider.ProviderException: You must specify a non-autogenerated machine key to store passwords in the encrypted format. Either specify a different passwordFormat, or change the machineKey configuration to use a non-autogenerated decryption key. 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: [ProviderException: You must specify a non-autogenerated machine key to store passwords in the encrypted format. Either specify a different passwordFormat, or change the machineKey configuration to use a non-autogenerated decryption key.] System.Web.Security.MembershipProvider.EncryptPassword(Byte[] password) +92 System.Web.Security.MembershipProvider.EncodePassword(String pass, Int32 passwordFormat, String salt) +292 System.Web.Security.SqlMembershipProvider.CreateUser(String username, String password, String email, String passwordQuestion, String passwordAnswer, Boolean isApproved, Object providerUserKey, MembershipCreateStatus& status) +198 System.Web.UI.WebControls.CreateUserWizard.AttemptCreateUser() +391 System.Web.UI.WebControls.CreateUserWizard.OnNextButtonClick(WizardNavigationEventArgs e) +200 System.Web.UI.WebControls.Wizard.OnBubbleEvent(Object source, EventArgs e) +651 System.Web.UI.WebControls.CreateUserWizard.OnBubbleEvent(Object source, EventArgs e) +158 System.Web.UI.WebControls.WizardChildTable.OnBubbleEvent(Object source, EventArgs args) +39 System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +56 System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) +107 System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +178 System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBa ckEvent(String eventArgument) +31 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +32 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +72 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3824 -------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433
اضف هذه الاسطر ايضاً
<system.web> ... <machineKey validationKey= "1C59D4D1C4B2D2D31FAF6F7F1B23C08B52F944695B24DDC13867FD5819 0BA28A1F0ADF613F80A1351045D0113D8D1C9F788D9BE2E5280BCFBDF771239BE9B77C" decryptionKey= "5256B455C22F5F1B53B2250B7BDA62405F40AE567277F3D61239B8CD9509B65B" validation="SHA1" decryption="AES"/> ... </system.web>
-----------------------------------------------------------------------------------------------------------------------------
ـــــــــــــــــــــــــــــــــــــــــــــــــــــــــ
Mohammad Sonaiea
شكراً لك
ولكن ظهر لي التالي
Server Error in '/WebSite3' Application. -------------------------------------------------------------------------------- Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: Machine validation key is invalid. It is '130' chars long. It should be either "AutoGenerate" or between 40 and 128 Hex chars long, and may be followed by ",IsolateApps". Source Error: Line 48: Line 49: <machineKey Line 50: validationKey= Line 51: "1C59D4D1C4B2D2D31FAF6F7F1B23C08B52F944695B24DDC13867FD5819 Line 52: 0BA28A1F0ADF613F80A1351045D0113D8D1C9F788D9BE2E5280BCFBDF771239BE9B77C" Source File: C:\Documents and Settings\Khalid\My Documents\Visual Studio 2005\WebSites\WebSite3\web.config Line: 50 -------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433
ضعه على سطر واحد
<system.web> ... <machineKey validationKey= "1C59D4D1C4B2D2D31FAF6F7F1B23C08B52F944695B24DDC13867FD58190BA28A1F0ADF613F80 A1351045D011D8D1C9F788D9BE2E5280BCFBDF771239BE9B77C" decryptionKey="5256B455C22F5F1B53B2250B7BDA62405F40AE567277F3D61239B8CD9509B65B" validation="SHA1" decryption="AES"/> ... </system.web>
-----------------------------------------------------------------------------------------------------------------------------
ـــــــــــــــــــــــــــــــــــــــــــــــــــــــــ
Mohammad Sonaiea
تمت العملية بنجااااااااااااح
جزاك الله ألف خير .
شكراً على حسن تعاونك ,,,,
الله يوفقك في دنياك وآخرتك ...................
كيف يكمن إلغاء طلب البريد الإلكتروني
وشكراًً
khaled100 كتب:كيف يكمن إلغاء طلب البريد الإلكترونيوشكراًً
اهلا اخي خالد
لم افهم السؤال
-----------------------------------------------------------------------------------------------------------------------------
ـــــــــــــــــــــــــــــــــــــــــــــــــــــــــ
Mohammad Sonaiea
أقصد عند إنشاء مستخدم جديد , يتم طلب اسم المستخدم وكلمة المرور وكذللك البريد الإلكتروني ولكني لا أرغب بطلب البريد الإلكتروني كما فعلت مع السؤال السري في التعديلات التي أعطيتني أياها
وشكراً
داخل الـweb.config
اضف او عدل مايلي
<membership defaultProvider="MyMembership"> <providers> <add name="MyMembership" type="System.Web.Security.SqlMembershipProvider" connectionStringName="con" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" /> </providers> </membership>
-----------------------------------------------------------------------------------------------------------------------------
ـــــــــــــــــــــــــــــــــــــــــــــــــــــــــ
Mohammad Sonaiea
شكراً جزيلا للك ,,,,
لكن هنا تم ازالة السؤال السري بالآمر التالي requiresQuestionAndAnswer="false"
ولكن في البريد اللكتروني يسأل هل تريد البريد يتكرر في قاعدة البيانات أم يكون بريد خاص لك عضو ولا يوجد عضو آخر يستخدم نفس البريد بالأمر requiresQuestionAndAnswer="false"
لكني أريدة أن يلغي طلب البريد الإلكتروني نهائيا ً
وشكرا