IIS认证错误

IIS authentication error

我正在尝试 运行 一个使用 IIS 具有相同基本 HTML 文件的本地网站。 通过 IIS 管理器,我创建了一个新网站,并将物理路径设置为包含 HTML 文件的目录。 但是,当我输入物理路径时,我收到以下警告:

The server is configured to use pass-through authentication with a built-in account to access the specified physical path. However, IIS Manager cannot verify whether the built-in account has access. Make sure that the application pool identity has Read access to the physical path. If this server is joined to a domain, and the application pool identity is NetworkService or LocalSystem, verify that $ has Read access to the physical path. Then test these settings again.

现在,当我通过本地主机导航到该站点时,我收到以下未经授权的错误:

You do not have permission to view this directory or page because of the access control list (ACL) configuration or encryption settings for this resource on the Web server.

这是怎么回事?当我右键单击我的文件夹时,我似乎已经授予所有人访问权限。我没有对 IIS 进行任何特定更改,所以这里可能是什么问题?

编辑: 男人,我不敢相信。我的情况非常简单(我只想在本地主机上显示一些 HTML 文件),这应该完全需要零配置。然而IIS无法满足需求。

编辑:我认为每个人都应该有权访问我的文件夹。这是文件夹权限屏幕的图片:

使用一组服务器协议不同于将文件添加到共享。在这种情况下,您需要打开 IIS 并导航到您将其添加为的网站。

在那里,您会看到各种图标,一些在 ASP.NET 标题下,一些在 IIS 下。您将在 IIS 下看到的第一个标题是身份验证。那就是你想要的。如果这是严格的 internal/for 学习,请继续并启用匿名身份验证。这不安全,但它会让你在正确的地方开始谷歌搜索。