添加虚拟目录时“无法验证对路径(C:\inetpub \ www.root)”的访问权限 [英] "Cannot verify access to path (C:\inetpub\wwwroot)", when adding a virtual directory
问题描述
我正在尝试在Windows Server 2008 R2上设置IIS Web服务和ASP.NET服务。物理目录已创建,但我无法使其工作。这是一个全新的IIS角色安装。
I am trying to set up IIS web services and ASP.NET services on Windows Server 2008 R2. The physical directory was created, but I cannot get it to work. This is a fresh IIS Role installation.
服务器在域上,domain \ server $具有对 C:\inetpub的读/写/浏览权限\wwwroot
。读/写/浏览权限也授予:
The server is on a domain, and domain\server$ has read/write/browse access to C:\inetpub\wwwroot
. Read/write/browse access is also granted to:
- 管理员
- 网络服务
- 用户
- IIS_IUSRS
- IUSR
- Administrators
- Network Services
- Users
- IIS_IUSRS
- IUSR
到目前为止我尝试了什么
-
在
编辑虚拟目录 - > 连接为
对话框,选择应用程序用户(通过身份验证)。当我按下测试设置时,我收到上述错误。
In the
Edit Virtual Directory -> Connect As
dialog, select Application User (pass through authentication). When I press Test Settings, I get the above error.
在编辑虚拟目录 - >连接为
对话框,选择特定用户: IUSR
(无密码)。当我按下测试设置时,我得到以下内容:
In the Edit Virtual Directory -> Connect As
dialog, select Specific user: IUSR
(no password). When I press Test Settings, I get the following:
其他笔记
启用匿名身份验证,匿名用户身份是应用程序池标识。
Anonymous Authentication is Enabled, and Anonymous user identity is Application pool identity.
应用程序池配置如下所示:
The Application pool configuration looks like this:
在网络浏览器中, http:// localhost
返回空白页但没有错误。
In the web browser, http://localhost
returns an blank page but no error.
任何帮助都将不胜感激。
Any help would be appreciated.
推荐答案
我直到现在才有同样的问题;就像你提到的那样,我尝试了Connect As和我写下的用户名和密码,是我的机器用户(IIS在这台机器上运行),我测试了连接,现在可以正常工作了。也许如果你没有使用该机器的用户(尝试具有管理员权限的用户),你应该尝试一下,它对我有用,它也可以在你的情况下工作。
I was having the same issue till just now; just as you mentioned, I tried "Connect As" and the username and password that I wrote down, was my machine's user (IIS is running on this machine), I tested the connection and it works now. Maybe if you weren't using that machine's user (try user with administrator privileges), you should give it a try, it worked for me, it may work in your case as well.
这篇关于添加虚拟目录时“无法验证对路径(C:\inetpub \ www.root)”的访问权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!