<System.Web>
        <authentication mode="Forms" />
      <forms loginUrl =" UserLogin/UserLogin.asp" defaultUrl =" Default.asp"/>
        <deny users="*"></deny>
        </authentication>
      </System.Web>

解决方案 »

  1.   

    <authentication mode="Forms" />
    改成<authentication mode="Forms">
      

  2.   

     <authentication mode="Forms" />  
     <authentication mode="Forms" > 
      

  3.   

    <System.Web>
      <authentication mode="Forms" >  <forms loginUrl =" UserLogin/UserLogin.asp" defaultUrl =" Default.asp"/>
      <deny users="*"></deny>
      </authentication>  </System.Web
      

  4.   

    谢谢大家      又出现说明: 在处理向该请求提供服务所需的配置文件时出错。请检查下面的特定错误详细信息并适当地修改配置文件。 分析器错误消息: 无法识别的配置节 system.web/System.Web。源错误: 
    行 50:             安全身份验证模式。 
    行 51:         -->
    行 52:       <System.Web>
    行 53:         <authentication mode="Forms" >
    行 54:       <forms loginUrl =" UserLogin/UserLogin.asp" defaultUrl =" Default.asp"/>
     
      

  5.   

    。。又是节点没对应 好好检查检查啊 实在不行,重新建个web.config
      

  6.   

       <System.Web>
            <authentication mode="Forms" >
          <forms loginUrl =" UserLogin/UserLogin.asp" defaultUrl =" Default.asp"/>
            <!--</authentication>
            <authentication>-->
              <deny users="*"></deny>
            </authentication>
          </System.Web>   没错阿
      

  7.   

      <System.Web>
            <authentication mode="Forms" >
          <forms loginUrl =" UserLogin/UserLogin.asp" defaultUrl =" Default.asp"/>
            
              <deny users="*"></deny>
            </authentication>
          </System.Web>
      

  8.   

    <authentication mode="Forms" >
    <forms loginUrl =" UserLogin/UserLogin.asp" defaultUrl =" Default.asp">
    </forms>

    </authentication>
    <authorization> <deny users="*"/>
    </authorization>
      

  9.   

        <system.web>
     <authentication mode="Forms">
          <forms loginUrl="~/Account/Login.aspx" timeout="2880" />
        </authentication></system.web>
    <system.web>必须唯一的
      

  10.   

    <System.Web>改成<system.web>注意大小写。
      

  11.   


    <authentication mode="Forms" >
    <forms loginUrl =" UserLogin/UserLogin.asp" defaultUrl =" Default.asp">
    </forms>
    </authentication>

    糊涂

    <authorization>
    <deny users="*"/>
    </authorization>

      

  12.   


    楼主大哥,你这段配置代码是不是拿来忽悠人的,难道你手写web.config?