Norman Yuan wrote:
> it look to me that your <allow... /> and <deny.../> in web.config
> does not make sense: first you want to allow access for users in a
> domain, then you deny access to ALL USERS, so that your ASP.NET app
> cannot be accessed to by anyone. If you want to block anonymous user,
> it should be <deny users="?" />. But the better way to deny anonymous
> access is simple uncheck "Anonymous access" in IIS setting for the
> ASP.NET application.
I'll have to disagree here Norman.
Dan's configuration is 100% OK. See also:
http://msdn.microsoft.com/library/en...haspdotnet.asp
The rule here is that the authorization block is checked
from top to bottom, and the first match is the one that counts.
But I agree with you that disabling "Anonymous access" would
solve Dan's problem.
Dan, you're using the ASPNET account for anonymous
access, which subsequently will be refused access.
Disabling anonymous access will solve this problem.
--
Jos