0

I'm having a bit of an issue setting up our test site.

In IIS 7, our app pool for the site is running in integrated mode.

In Authentication, I have Anon enabled and Forms auth enabled.

In Authorization, I have Allow All users.

All pages allow anon users, EXCEPT the default (Home/Index.aspx). That page always forwards the user to the login screen. I want them to see the homepage.

I have tried adding authorization rules to the webconfig, but nothing changes it. Any ideas?

Josh
  • 16,286
  • 25
  • 113
  • 158

2 Answers2

1

Make sure you haven't set the Authorize (C#) attribute on either the Home controller or the Index action.

Craig Stuntz
  • 125,891
  • 12
  • 252
  • 273
  • I do not have that C# attribute attached to either my controller or the Index action. – Josh May 21 '09 at 17:29
0

The problem was in the NTFS security settings in IIS 7. I added the anon user accounts to have access and the site works fine now.

Josh
  • 16,286
  • 25
  • 113
  • 158