Mathias F
Mathias F

Reputation: 15911

Cannot access Page without authentication

I deployed the sample application (the blue one you get when you create a new project) to IIS7 on Windows Server 2008. When I try to access mysite.com/home/about I get redirected to Accoun/Login.

This does not happen when I run the site on VS integrated server. I did not change any code in the project, so it sems to be an issue on the server.

IIS is set to integrated mode. Any ideas what is wrong?

Upvotes: 1

Views: 761

Answers (2)

ten5peed
ten5peed

Reputation: 15890

Further on eu-ge-ne's answer, if 'Anonymous Authentication' is enabled then you need to make sure the user it is impersonating (default IUSR) has read access to your website directory.

If you have set it to use your application pool identity's user (default NETWORK SERVICE) then obviously make sure that that user has read access to your website directory.

Upvotes: 1

eu-ge-ne
eu-ge-ne

Reputation: 28153

Check if the "Anonymous Authentication" is enabled in the IIS/Authentication settings

Upvotes: 0

Related Questions