ASP.NET配置成员资格用户要求

ASP.NET配置成员资格用户要求,asp.net,security,asp.net-membership,Asp.net,Security,Asp.net Membership,我正在关注MSDN的演练 我已经完成了配置成员资格部分,并且刚刚进行了测试 用户名和密码的要求比我们公司的要求更严格,所以我需要知道在哪里设置这些要求 当前错误为: 密码长度最小值:7。需要非字母数字字符:1。 我在哪里设置这些要求 编辑: 下面是Microsoft在我创建此Web应用程序时创建的默认Web.config文件 <?xml version="1.0"?> <!-- For more information on how to configure your AS

我正在关注MSDN的演练

我已经完成了配置成员资格部分,并且刚刚进行了测试

用户名和密码的要求比我们公司的要求更严格,所以我需要知道在哪里设置这些要求

当前错误为:

密码长度最小值:7。需要非字母数字字符:1。

我在哪里设置这些要求

编辑:

下面是Microsoft在我创建此Web应用程序时创建的默认
Web.config
文件

<?xml version="1.0"?>

<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->

<configuration>
  <system.web>
    <roleManager enabled="true" />
    <authentication mode="Forms" />
    <compilation debug="true" targetFramework="4.0" />
  </system.web>
</configuration>

不知何故,所有这些中都有一个数据库连接字符串,但我肯定没有看到它

我的ASP.NET提供程序是
AspNetSqlProvider
,测试成功…但我不知道该数据库在哪里。我在我的项目中没有看到它


这可以在web应用程序的
web.config
中设置

<membership>
   <providers>
    <clear/>
    <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
         connectionStringName="connName"
         requiresQuestionAndAnswer="false"
         requiresUniqueEmail="true"
         passwordFormat="Hashed"
         minRequiredNonalphanumericCharacters="0"
         minRequiredPasswordLength="5" /><!-- set password length here -->
   </providers>
  </membership>


因此,每当我通过
localhost
调试Web应用程序时,都会使用Visual Studio项目的
Web.config
中设置此值?[仍然是一个难题。我还不习惯测试项目中的配置文件如何改变调试期间
localhost
的运行方式。]这将使用适当的设置配置开箱即用的
SqlMembershipProvider
。我在哪里可以找到我的
connectionStringName
值?在web.config文件的
connectionStrings
元素下-这应该是
aspnet
架构安装在…my
web.config
文件上的数据库(在我开始之前)几乎是空的。它有
,就是这样。它以前是如何连接到任何东西的???仅供参考:[Link 169433]()带你去看一本关于ASP.net的在线书籍,里面有链接。