第二种方式是:上面的写错了!
<system.web>
        <authentication mode="Forms">
            <forms name="myJXC" loginUrl="login.aspx" protection="All" path="/" />
        </authentication>    <authorization>
        <deny users="?" /> 
    </authorization>
 </system.web>