Hosting ASP.NET in IIS7 gives Access is denied? Hosting ASP.NET in IIS7 gives Access is denied? asp.net asp.net

Hosting ASP.NET in IIS7 gives Access is denied?


I gave access to "IIS_IUser" but instead it should be "IUSR". That solved the problem.


For me, nothing worked except the following, which solved the problem: open IIS, select the site, open Authentication (in the IIS section), right click Anonymous Authentication and select Edit, select Application Pool Identity.


I had the same problem, I enabled "Anonymous Authentication" but it still did not work. So I also ENABLED "Forms Authentication" Then it worked without any problems.