没有认证无法访问页面 [英] Cannot access Page without authentication

查看:131
本文介绍了没有认证无法访问页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我部署示例应用程序(蓝色当你创建一个新的项目你)当我试图访问mysite.com/home/about我重定向到有分/登录IIS7 Windows Server 2008上。

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.

当我运行VS集成的服务器上的网站这不会发生。
我没有改变项目中的任何code,所以中小企业要在服务器上的问题。

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设置为集成模式。任何想法有什么不好?

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

推荐答案

另外欧盟-GE-NE的回答,如果启用匿名身份验证,那么你需要确保用户被仿冒(默认IUSR)已读访问您的网站目录。

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.

这篇关于没有认证无法访问页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆