Asp.net 您无权查看此页面

Asp.net 您无权查看此页面,asp.net,iis,web-applications,iis-7,web-config,Asp.net,Iis,Web Applications,Iis 7,Web Config,我在浏览我的网页时遇到以下错误 我检查并看到一个合法的访问已经被启用,集成的身份验证已经关闭 你能帮忙吗 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. ------------------------------------------------------

我在浏览我的网页时遇到以下错误

我检查并看到一个合法的访问已经被启用,集成的身份验证已经关闭

你能帮忙吗

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)


Open in New WindowSelect All
Tags: 
Add Tags
    Add Tags

Zones: 
Microsoft IIS Web Server, .Net Application Servers, Programming for 
我的web.conf如下所示:

<!--
            The <authentication> section enables configuration 
            of the security authentication mode used by 
            ASP.NET to identify an incoming user. 
        -->
    <authentication mode="Windows"/>

您还应该检查网站本身目录和文件的NTFS权限。确定这是否是问题的最简单方法是为每个人提供读取权限。测试一下。然后删除Everyone条目。如果这解决了问题,请找出承载web应用程序的IIS应用程序池使用的用户帐户,并将该用户帐户添加到NTFS权限列表中,以授予该用户读取权限。

您还应该检查网站本身中目录和文件的NTFS权限。确定这是否是问题的最简单方法是为每个人提供读取权限。测试一下。然后删除Everyone条目。如果这解决了问题,请找出承载web应用程序的IIS应用程序池使用的用户帐户,并将该用户帐户添加到授予该用户读取权限的NTFS权限列表中