Cannot access Page without authentication

旧巷老猫 提交于 2019-12-02 08:21:47

问题


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?


回答1:


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.




回答2:


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



来源:https://stackoverflow.com/questions/1140140/cannot-access-page-without-authentication

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!