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.
<!-- 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等声明中,没有包含(= "??")。