据我所知,有以下几个原因:
1.你的IIS的virtual directory的Integrated Windows Authentication这个选项没有选中,你只使用了basic authentication
2. 如果你使用了Integrated Windows Authentication,你应该保证你的ASP.NET的账户对该virutal directory有完全的访问权限
3.如果你的ASP.NET项目创建在一个完全的机器名上,比如(www.yourcompany.com),那么该网站将被视为internet site. IE的default setting会影响登陆验证。 IE -> Tools -> Internet options -> Security -> internet -> custom level -> user authentication,选中automatic logon with current username and password.