首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

C#中表单验证web.config文件,该怎么处理

2012-03-03 
C#中表单验证web.config文件我的表单验证web。config是这么写的!configurationsystem.webauthenticati

C#中表单验证web.config文件
我的表单验证web。config是这么写的!
<configuration>
    <system.web>
        <authentication   mode= "Forms "/>
            <forms   name= "formauthentication "   loginUrl= "ch10ex2.aspx "
                                            protection= "All "   timeout= "60 ">
                    <credentials   passwordFormat= "Clear ">
                          <user   name= "yijiyong "   password= "19860306 ">
                          <user   name= "zhonglianyu "   password= "2005030611 ">
                          <user   name= "wangxiaojian "   password= "2005030599 ">
                    </credentials>
            </forms>
        </authentication>
    <machineKey   validationKey= "AutoGenerate "   decryptionKey= "AutoGenerate "
                                                                      validation= "SHA1 "/>
    <authorization>
              <deny   users= "? "/>
    </authorization>
    </system.web>
</configuration>

但是把相应的网页在IIS服务器浏览时,系统弹出
Parser   Error   Message:   Unrecognized   configuration   section   'forms '

Source   Error:  


Line   2:         <system.web>
Line   3:             <authentication   mode= "Forms "/>
Line   4:                 <forms   name= "formauthentication "   loginUrl= "ch10ex2.aspx "
Line   5:                                                 protection= "All "   timeout= "60 ">
Line   6:                         <credentials   passwordFormat= "Clear ">
 
希望大侠帮帮忙!其中保证ch10ex2.aspx没错!

[解决办法]
厉害,自己把问题给解决了,是多了个反斜杠
[解决办法]
LZ别白来一趟啊,散个分吧~
[解决办法]
我要分阿

热点排行