XML is case-sensitive, use "forms" instead af "Forms"
<authentication mode="Forms"> 
      <forms loginURL="webform1.aspx">
      <credentials passwordFormat="Clear">
      <user name="xxx" password="111"></user>
      <user name="bbb" password="222"></user>
      </credentials>
      </forms>
</authentication>

解决方案 »

  1.   

    还是第26行错,这次是无法识别的属性loginURL
    分析器错误信息: 无法识别的属性“loginURL”。
    源文件: C:\DATA\aspx\test\web.config    行: 26 
      

  2.   

    <forms loginURL="WebForm1.aspx">路径是否正确,文件名大小写是否正确?
      

  3.   

    看看帮助
    ms-help://MS.VSCC/MS.MSDNVS.2052/cpguide/html/cpconcookieauthenticationusinganxmlusersfile.htm
      

  4.   

    文件名大小写正确,路径也应该正确,这是书上的一个例子!所有文件都在同一目录下,除了有个bin目录外!那个帮助页面我打不开,找不到服务器
      

  5.   

    case-sensitive again, changeloginURL="WebForm1.aspx"
    ===>
    loginUrl="WebForm1.aspx">
    for example:<configuration>
       <system.web>
          <authentication mode="Windows">
             <forms name="401kApp" loginUrl="/login.aspx">
                <credentials passwordFormat = "SHA1" 
                   <user name="UserName" password="password"/>
                </credentials>
             </forms>
          </authentication>
       </system.web>
    </configuration>