您无权查看此页面

时间:2009-12-07 11:51:04

标签: asp.net iis deployment web-config webserver

浏览IIS中部署的asp.net页面时出现以下错误

You are not authorized to view this page
You do not have permission to view this directory or page using the credentials that you supplied. 
--------------------------------------------------------------------------------

Please try the following:

Contact the Web site administrator if you believe you should be able to view this directory or page. 
Click the Refresh button to try again with different credentials. 
HTTP Error 401.1 - Unauthorized: Access is denied due to invalid credentials.
Internet Information Services (IIS)

--------------------------------------------------------------------------------

Technical Information (for support personnel)

Go to Microsoft Product Support Services and perform a title search for the words HTTP and 401. 
Open IIS Help, which is accessible in IIS Manager (inetmgr), and search for topics titled Authentication, Access Control, and About Custom Error Messages. 

我检查了网站中的NTFS权限,发现每个人都有读取和执行权限。

但文件夹

没有IUSER组

在此文件夹中配置的匿名访问,未启用集成身份验证。

1 个答案:

答案 0 :(得分:1)

您是否已为wwwroot中的文件添加了适当的权限。

最简单的方法是在资源管理器中右键单击wwwroot文件夹,然后单击属性。然后在“安全”选项卡上,单击“高级”按钮。在下一个弹出窗口中,选中“替换所有子对象的权限”框,然后单击“应用”。

确定所有对话框,然后再试一次您的网站。