<authorization> <allow users="*" /> <deny users="?" /> </authorization> not responding as expected

S. S. Seybert 1 Reputation point
2021-10-05T11:08:25.827+00:00

The code worked last Tuesday, 9/28/2021. Something happened on GoDaddy related to our database that caused a problem and our site crashed. GoDaddy corrected the problem which they claim to be nonrelated. When I remove all "allow" and "deny" lines of code throughout the web.config, the site will run but the whole world has access to our site since there are no permissions. Anyone who puts our site's URL in a browser will have access to all.

When I put the line: <deny users="?" />

I get a 401.2 error.

The settings in IIS and ASP.net look fine, the framework version (4.8.whatever) and that the authentication mode on both IIS and in the web.config file are set to "none" (because the username/password pairs are stored as cleartext in the web.config file itself)

Any ideas as to why I might be getting these errors?

Internet Information Services
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.