Funny Asp.net 2 password Problem

Source: Internet
Author: User

When using the membership provider of Asp.net 2, select the website drop-down menu in vs.net 2005, and then select the Asp.net configuration option to display the page-based setting interface, here, you can add users to secruity. At the beginning, you tried several times,
The password is too simple, and then you can search for other people's instructions. In Asp.net 2 beta 2, the password is required
It must be 8 or more characters long and contain uppercase/lowercase letters, numbers, and punctuation marks. It's a day. Check the solution,
You can do this in Web. config as follows:
<Providers>
<Remove name = "aspnetsqlmembershipprovider"/>
<Add name = "aspnetsqlmembershipprovider" minrequiredpasswordlength = "6" minrequirednonalphanumericcharacters = "0" type = "system. web. security. sqlmembershipprovider, system. web, version = 2.0.0.0, culture = neutral, publickeytoken = b03f5f7f11d50a3a "connectionstringname =" localsqlserver "/>

 
</Providers>
Note: minrequiredpasswordlength indicates the minimum password length. I set it to 6. minrequirednonalphanumericcharacters indicates the number of other non-letter characters. Here I set it to 0, which is convenient.
In this way, you can. Note that, in addition, Machine. config does not work. It is strange. It is estimated that the official version will be improved.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.