zoukankan      html  css  js  c++  java
  • Error from MSDN——No3. add subelement in membership Element (ASP.NET Settings Schema)

    1)错误页面路径:

    l         ms-help://MS.MSDNQTR.v80.en/MS.MSDN.v80/MS.NETDEVFX.v20.en/dv_ASPNETgenref/html/8423ec7f-a06d-4606-977e-a46400b2fc18.htm

    l         http://msdn2.microsoft.com/en-us/library/whae3t94(en-US,VS.80).aspx

    2)页面内容:

     

    Adds a membership provider instance to the membership provider collection.

    This element is new in the .NET Framework version 2.0.

    <configuration> Element

    <!-- SqlMembershipProvider syntax -->

    <add name="string"

    type="string"

    connectionStringName="string"

    applicationName="MyApplication"

    commandTimeout

     description

     enablePasswordRetrieval="false"

     enablePasswordReset="true"

    requiresQuestionAndAnswer="true"

    requiresUniqueEmail="false"

    passwordFormat="Hashed"

    maxInvalidPasswordAttempts="5"

    passwordAttemptWindow="10"

    minRequiredPasswordLength

    minRequiredNonalphanumericCharacters

    passwordStrengthRegularExpression />

    <!-- ActiveDirectoryMembershipProvider syntax -->

    <add name="string"

    type="string"

    applicationName

    attributeMapUserName="string"

    attrbuteMapEmail="string"

    attributeMapPasswordQuestion="string"

    attributeMapPasswordAnswer="string" attributeMapFailedPasswordAnswerCount="number" attributeMapFailedPasswordAnswerTime="interval" attributeMapFailedPasswordAnswerLockoutTime="interval" clientSearchTimeout="interval"

    serverSearchTimeout

    connectionUserName="string"

    connectionPassword="string"

    connectionProtection="string"

    connectionStringName="connection string identifier" enablePasswordReset="true|false"

    enablePasswordRetrieval="true|false"

    enableSearchMethods="true|false"

    requiresQuestionAndAnswer="true|false"

    maxInvalidPasswordAttempts="number"

    passwordAttemptWindow="number"

    commandTimeout="number"

    description="string"

    passwordAnswerAttemptLockoutDuration="interval"

    minRequiredPasswordLength

    minRequiredNonalphanumericCharacters passwordStregnthRegularExpression="string" passwordAnswerAttemptLockoutDuration="number" requiresUniqueEmail="true|false" />

     

     

    3)简要说明:

    以上声明代码中,部分属性的声明有误。这并不是指属性本身的错误,而是指声明代码格式。例如,属性commandTimeout description等声明中,没有包含(= "??")。

  • 相关阅读:
    静态变量、静态方法说明
    DataGridView导出成excel实例
    异步执行小例子
    多线程操作的例子
    xmlReader遍历xml文档案例
    C#自动登录网页浏览页面 抓取数据
    datatable序列化成xml,xml反序列化成datatable
    TreeView递归法动态添加节点
    今天写的一个导出html页面的过程
    利用委托的BeginInvoke防止界面假死的实例
  • 原文地址:https://www.cnblogs.com/polaris/p/300080.html
Copyright © 2011-2022 走看看