The default home page of an MVC application is always redirected to the login screen (IIS7)

I am having a problem setting up our test site.

In IIS 7, our site application pool runs in integrated mode.

In authentication mode I have Anon enabled and auth mode enabled.

In authorization, I have Allow all users.

All pages allow anonymous users EXCEPT the default (Home / Index.aspx). This page always redirects the user to the login screen. I want them to see the home page.

I tried adding authorization rules to webconfig but didn't change anything. Any ideas?

0


a source to share


2 answers


The problem was with NTFS security settings in IIS 7. I added anonymous user accounts to have access and the site is working fine now.



0


a source


Make sure the Authorize (C #) attribute is not set on either the Home controller or the pointer.



+1


a source







All Articles