<configuration>
  <system.web><authentication mode="Forms">
   <forms name="TEST" loginUrl="WebForm1.aspx" protection="all"  path="/">
   </forms>
</authentication>    <authorization>
        <deny users="?" />
    </authorization>
  </system.web>
</configuration>WebForm1.aspx是登陆页面:
UserName:TextBox1 
Passowrd:TextBox2
LogiN :  Button1
btnLogin_click()
{
if (Textbox1="aa) && (TextBox2.text="aa)
{  FormsAuthentication.RedirectFromLoginPage(TextBox1.Text,false)   ;
}
Else
{ Response.Redirect("errhtm.htm");

} }当我访问首先访问登陆页面时会出现错误:
应用程序中的服务器错误。
--------------------------------------------------------------------------------无法找到资源。 
说明: HTTP 404。您正在查找的资源(或者它的一个依赖项)可能已被移除,或其名称已更改,或暂时不可用。请检查以下 URL 并确保其拼写正确。 请求的 URL: /WebApplication1/default.aspx
--------------------------------------------------------------------------------